+ def get_object(self, request, slug):
+ book = get_object_or_404(Book, slug=slug)
+ if not book.gallery:
+ raise Http404
+ return book
+
+class GalleryView(GalleryMixin, UploadView):
+
+ def breadcrumbs(self):
+ return [
+ (u'moduły', reverse('catalogue_document_list')),
+ (self.object.title, self.object.get_absolute_url()),
+ (u'materiały',),
+ ]
+
+
+class GalleryPackageView(GalleryMixin, PackageView):