From a54278d6d09645e5d9e6b310b7d58d7aa3f80f4d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 1 Jun 2018 15:56:17 +0200 Subject: Migrations to clean older models for images and sources (refs #4107) --- ishtar_common/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 995a2c136..76f16eaae 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3096,9 +3096,9 @@ class Document(OwnPerms, ImageModel, FullSearch): LINK_SPLIT = u"<||>" - - title = models.TextField(_(u"Title"), blank=True, default='') + associated_file = models.FileField( + upload_to=get_image_path, blank=True, null=True, max_length=255) index = models.IntegerField(verbose_name=_(u"Index"), blank=True, null=True) external_id = models.TextField(_(u"External ID"), null=True, blank=True) -- cgit v1.2.3