fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forgotten migrations.
[wolnelektury.git]
/
src
/
catalogue
/
views.py
diff --git
a/src/catalogue/views.py
b/src/catalogue/views.py
index
ef2527b
..
bca75e7
100644
(file)
--- a/
src/catalogue/views.py
+++ b/
src/catalogue/views.py
@@
-351,7
+351,7
@@
def import_book(request):
_("An error occurred: %(exception)s\n\n%(tb)s") % {
'exception': exception, 'tb': tb
},
_("An error occurred: %(exception)s\n\n%(tb)s") % {
'exception': exception, 'tb': tb
},
-
mime
type='text/plain'
+
content_
type='text/plain'
)
return HttpResponse(_("Book imported successfully"))
return HttpResponse(_("Error importing file: %r") % book_import_form.errors)
)
return HttpResponse(_("Book imported successfully"))
return HttpResponse(_("Error importing file: %r") % book_import_form.errors)
@@
-449,7
+449,7
@@
def tag_catalogue(request, category):
def collections(request):
def collections(request):
- objects = Collection.objects.
filter(role=''
)
+ objects = Collection.objects.
all(
)
if len(objects) > 3:
best = random.sample(list(objects), 3)
if len(objects) > 3:
best = random.sample(list(objects), 3)