fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
publishable checked when last change is marked publishable
[redakcja.git]
/
apps
/
catalogue
/
feeds.py
diff --git
a/apps/catalogue/feeds.py
b/apps/catalogue/feeds.py
index
4884a4c
..
1eb421b
100644
(file)
--- 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
from django.shortcuts import get_object_or_404
from catalogue.models import Book, Chunk
+
class PublishTrackFeed(Feed):
title = u"Planowane publikacje"
link = "/"
class PublishTrackFeed(Feed):
title = u"Planowane publikacje"
link = "/"
@@
-22,8
+23,7
@@
class PublishTrackFeed(Feed):
def items(self, obj):
tag, published = obj
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
if published is not None:
books = books.filter(_published=published)
return books