X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/03715cba601c571ac35765daa5b6a97a004326cf..5c14b2f1216cf266efd63f4de84e3f83bb99c9ff:/src/picture/models.py?ds=sidebyside diff --git a/src/picture/models.py b/src/picture/models.py index 3a05ad8dc..5f5fe4c58 100644 --- a/src/picture/models.py +++ b/src/picture/models.py @@ -22,7 +22,7 @@ import re from PIL import Image -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from newtagging import managers from os import path @@ -101,6 +101,8 @@ class Picture(models.Model): short_html_url_name = 'picture_short' + is_picture = True + class AlreadyExists(Exception): pass