X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f9103b1e752a6c41d2304bf5e41a7d6ae0c45c8..892198abd0775399c80104d6ee16aa0f1092045d:/apps/picture/models.py diff --git a/apps/picture/models.py b/apps/picture/models.py index fa602e66c..65002aeb1 100644 --- a/apps/picture/models.py +++ b/apps/picture/models.py @@ -41,6 +41,9 @@ class Picture(models.Model): image_file = ImageField(_('image_file'), upload_to="images", storage=picture_storage) html_file = models.FileField('html_file', upload_to="html", storage=picture_storage) areas = jsonfield.JSONField(_('picture areas'), default={}, editable=False) + extra_info = jsonfield.JSONField(_('extra information'), default={}) + culturepl_link = models.CharField(blank=True, max_length=240) + wiki_link = models.CharField(blank=True, max_length=240) objects = models.Manager() tagged = managers.ModelTaggedItemManager(catalogue.models.Tag) @@ -108,6 +111,7 @@ class Picture(models.Model): raise Picture.AlreadyExists('Picture %s already exists' % picture_xml.slug) picture.title = picture_xml.picture_info.title + picture.extra_info = picture_xml.picture_info.to_dict() motif_tags = set() thing_tags = set()