fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#6: Endpoint do pobierania elementów galerii (wstępna wersja)
[wolnelektury.git]
/
src
/
picture
/
models.py
diff --git
a/src/picture/models.py
b/src/picture/models.py
index
8ab5d21
..
f496726
100644
(file)
--- a/
src/picture/models.py
+++ b/
src/picture/models.py
@@
-127,6
+127,9
@@
class Picture(models.Model):
def author_str(self):
return ", ".join(str(t) for t in self.tags.filter(category='author'))
def author_str(self):
return ", ".join(str(t) for t in self.tags.filter(category='author'))
+ def author_unicode(self):
+ return ", ".join(unicode(t) for t in self.tags.filter(category='author'))
+
@permalink
def get_absolute_url(self):
return 'picture.views.picture_detail', [self.slug]
@permalink
def get_absolute_url(self):
return 'picture.views.picture_detail', [self.slug]