fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'obrazy' into rwd
[wolnelektury.git]
/
apps
/
funding
/
models.py
diff --git
a/apps/funding/models.py
b/apps/funding/models.py
index
de52ac9
..
ba14947
100644
(file)
--- a/
apps/funding/models.py
+++ b/
apps/funding/models.py
@@
-12,7
+12,7
@@
from django.db import models
from django.utils.translation import ugettext_lazy as _, ugettext, override
import getpaid
from catalogue.models import Book
from django.utils.translation import ugettext_lazy as _, ugettext, override
import getpaid
from catalogue.models import Book
-from catalogue.utils import get_random_hash
+from catalogue.utils import get_random_hash
, related_tag_name
from polls.models import Poll
from django.contrib.sites.models import Site
from . import app_settings
from polls.models import Poll
from django.contrib.sites.models import Site
from . import app_settings
@@
-175,7
+175,7
@@
class Offer(models.Model):
'funding/email/published.txt', {
'offer': self,
'book': self.book,
'funding/email/published.txt', {
'offer': self,
'book': self.book,
- 'author': ", ".join(
a[0]
for a in self.book.related_info()['tags']['author']),
+ 'author': ", ".join(
related_tag_name(a)
for a in self.book.related_info()['tags']['author']),
'current': self.current(),
})
'current': self.current(),
})