X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/712dc72249211f1df442de8b8a40d2cc397dac76..957587c1b5fb2133d73e0397fc0bb94a3316b69d:/apps/catalogue/feeds.py diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py old mode 100755 new mode 100644 index 4884a4cd..1eb421b0 --- a/apps/catalogue/feeds.py +++ b/apps/catalogue/feeds.py @@ -3,6 +3,7 @@ from django.contrib.syndication.views import Feed from django.shortcuts import get_object_or_404 from catalogue.models import Book, Chunk + class PublishTrackFeed(Feed): title = u"Planowane publikacje" link = "/" @@ -22,8 +23,7 @@ class PublishTrackFeed(Feed): def items(self, obj): tag, published = obj - books = Book.objects.filter(public=True, _on_track__gte=tag.ordering - ).order_by('-_on_track', 'title') + books = Book.objects.filter(public=True, _on_track__gte=tag.ordering).order_by('-_on_track', 'title') if published is not None: books = books.filter(_published=published) return books