X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0f7ebe49c20394d80afb129b29e4afa411347441..97487ee6a55f54bd483c20557fb554fea4f28844:/apps/catalogue/feeds.py?ds=inline diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py index 4884a4cd..1eb421b0 100644 --- 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