help='Exclude specific books by slug')
)
help = 'Prepare ZIP package with files of given type.'
- args = '[%s] output_path.zip' % '|'.join(ftypes)
+ args = '[%s] output_path.zip' % '|'.join(Book.formats)
def handle(self, ftype, path, **options):
self.style = color_style()
def setUp(self):
WLTestCase.setUp(self)
self.book_info = BookInfoStub(
- url=u"http://wolnelektury.pl/example/default-book",
- about=u"http://wolnelektury.pl/example/URI/default_book",
- title=u"Default Book",
author=PersonStub(("Jim",), "Lazy"),
kind="X-Kind",
genre="X-Genre",
epoch="X-Epoch",
+ **info_args(u"Default Book")
)
def test_book_with_footnote(self):
objects = objects.filter(sort_key__regex=r"^[0-9]")
elif self.letter:
objects = objects.filter(sort_key__startswith=self.letter)
- return ListView.get_queryset(self)
+ return objects
def get_context_data(self, **kwargs):
context = super(NotesView, self).get_context_data(**kwargs)