fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Celery to 4.3
[wolnelektury.git]
/
src
/
social
/
utils.py
diff --git
a/src/social/utils.py
b/src/social/utils.py
old mode 100755
(executable)
new mode 100644
(file)
index
52fd4e4
..
e713fcd
--- a/
src/social/utils.py
+++ b/
src/social/utils.py
@@
-115,7
+115,7
@@
def choose_cite(book_id=None, tag_ids=None):
def get_or_choose_cite(request, book_id=None, tag_ids=None):
try:
assert request.user.is_staff
def get_or_choose_cite(request, book_id=None, tag_ids=None):
try:
assert request.user.is_staff
- assert '
choose_cite
' in request.GET
- return Cite.objects.get(pk=request.GET['
choose_cite
'])
+ assert '
banner
' in request.GET
+ return Cite.objects.get(pk=request.GET['
banner
'])
except (AssertionError, Cite.DoesNotExist):
return choose_cite(book_id, tag_ids)
except (AssertionError, Cite.DoesNotExist):
return choose_cite(book_id, tag_ids)