+# -*- coding: utf-8 -*-
from datetime import datetime, date, timedelta
import logging
import os
gallery=form.cleaned_data['gallery'],
)
- return http.HttpResponseRedirect(reverse("catalogue_book", args=[book.slug]))
+ return http.HttpResponseRedirect(reverse("wiki_editor", args=[book.slug]))
else:
form = forms.DocumentCreateForm(initial={
"slug": slug,
"title": slug.replace('-', ' ').title(),
- "gallery": slug,
})
return render(request, "catalogue/document_create_missing.html", {
def breadcrumbs(self):
return [
- (_('books'), reverse('catalogue_document_list')),
+ (u'moduły', reverse('catalogue_document_list')),
(self.object.title, self.object.get_absolute_url()),
- (_('scan gallery'),),
+ (u'materiały'),
]