pretty book descriptions and don't hide short descriptions
[wolnelektury.git] / apps / api / handlers.py
index 799b608..40121d6 100644 (file)
@@ -16,14 +16,14 @@ staff_required = user_passes_test(lambda user: user.is_staff)
 class BookHandler(BaseHandler):
     model = Book
     fields = ('slug', 'title')
 class BookHandler(BaseHandler):
     model = Book
     fields = ('slug', 'title')
-    
+
     @staff_required
     def read(self, request, slug=None):
         if slug:
             return get_object_or_404(Book, slug=slug)
         else:
             return Book.objects.all()
     @staff_required
     def read(self, request, slug=None):
         if slug:
             return get_object_or_404(Book, slug=slug)
         else:
             return Book.objects.all()
-    
+
     @staff_required
     def create(self, request):
         form = BookImportForm(request.POST, request.FILES)
     @staff_required
     def create(self, request):
         form = BookImportForm(request.POST, request.FILES)