fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove machina, remove default cache config, add some upgrades and compatibility...
[wolnelektury.git]
/
src
/
picture
/
models.py
diff --git
a/src/picture/models.py
b/src/picture/models.py
index
3a05ad8
..
5f5fe4c
100644
(file)
--- a/
src/picture/models.py
+++ b/
src/picture/models.py
@@
-22,7
+22,7
@@
import re
from PIL import Image
from PIL import Image
-from django.utils.translation import
u
gettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from newtagging import managers
from os import path
from newtagging import managers
from os import path
@@
-101,6
+101,8
@@
class Picture(models.Model):
short_html_url_name = 'picture_short'
short_html_url_name = 'picture_short'
+ is_picture = True
+
class AlreadyExists(Exception):
pass
class AlreadyExists(Exception):
pass