diff options
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 |
commit | a54278d6d09645e5d9e6b310b7d58d7aa3f80f4d (patch) | |
tree | f6c76e265d0f7ee477d38c14010ba08901a313bc /ishtar_common/models.py | |
parent | 7343c9f1bbc28be270b2093dcd9e713a7bdcdb89 (diff) | |
download | Ishtar-a54278d6d09645e5d9e6b310b7d58d7aa3f80f4d.tar.bz2 Ishtar-a54278d6d09645e5d9e6b310b7d58d7aa3f80f4d.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.py | 4 |
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) |