X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/712dc72249211f1df442de8b8a40d2cc397dac76..7197b4d1501ff6d1f826f17f9944c1c763e1d924:/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