如何在我的模型中包含jQuery-File-Upload?

时间:2016-10-22 13:20:42

标签: python django

朋友。我尝试在我的项目中使用jQuery-File-Upload。项目包括两个应用: 订单,Fileupload。订单有一个模型:

from fileupload.models import Picture  

class Order(models.Model):
title = models.CharField(max_length=200, verbose_name=u'Название')
born = models.DateTimeField(verbose_name="День создания", default=timezone.now)
user = models.ForeignKey(User, verbose_name=u'Пользователь')
email = models.EmailField(verbose_name=u'Почта')
name = models.CharField(max_length='200', verbose_name='Имя представителя')
phone = models.CharField(max_length='12', verbose_name=u'Телефон')
city = models.CharField(max_length='100', verbose_name=u'Город')
body = models.TextField(verbose_name=u'Описание проекта')
files = models.ForeignKey(Picture, default='', verbose_name=u'Файлы проекта')

我想在我的模型中插入jQuery-File-Upload。怎么做?

0 个答案:

没有答案