summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-01 15:56:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 09:57:24 +0200
commit202fb132953d115c2b1983f5f50d2f4b62bb9d5d (patch)
treef6c76e265d0f7ee477d38c14010ba08901a313bc /ishtar_common/models.py
parent572b9047260322ed19cc9f674657b8be8d62c052 (diff)
downloadIshtar-202fb132953d115c2b1983f5f50d2f4b62bb9d5d.tar.bz2
Ishtar-202fb132953d115c2b1983f5f50d2f4b62bb9d5d.zip
Migrations to clean older models for images and sources (refs #4107)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 2 insertions, 2 deletions
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)