fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Embargo links hidden.
[wolnelektury.git]
/
src
/
social
/
admin.py
diff --git
a/src/social/admin.py
b/src/social/admin.py
index
0a634ed
..
bceb890
100755
(executable)
--- a/
src/social/admin.py
+++ b/
src/social/admin.py
@@
-25,7
+25,7
@@
class CiteAdmin(admin.ModelAdmin):
def nonempty_text(self, cite):
if cite.text.strip():
return cite.text
def nonempty_text(self, cite):
if cite.text.strip():
return cite.text
- return "(%s)" % (
cite.image_title
.strip() or cite.link)
+ return "(%s)" % (
(cite.image_title or '')
.strip() or cite.link)
nonempty_text.short_description = _('text')
def has_image(self, cite):
nonempty_text.short_description = _('text')
def has_image(self, cite):