Displays drafts in reverse order
This commit is contained in:
parent
cce16e031a
commit
c0318ae208
|
@ -95,6 +95,9 @@ class Blog(models.Model):
|
||||||
self.engines.append(globals()['atom'])
|
self.engines.append(globals()['atom'])
|
||||||
self.engines.append(globals()['rss'])
|
self.engines.append(globals()['rss'])
|
||||||
self.engines.append(globals()['all_posts'])
|
self.engines.append(globals()['all_posts'])
|
||||||
|
|
||||||
|
def get_engines(self):
|
||||||
|
return self.engines
|
||||||
|
|
||||||
def copytree(self, src, dst):
|
def copytree(self, src, dst):
|
||||||
names = os.listdir(src)
|
names = os.listdir(src)
|
||||||
|
|
|
@ -357,7 +357,7 @@ def view_blog(request, blog_id):
|
||||||
cur_page = 0
|
cur_page = 0
|
||||||
|
|
||||||
if cur_page <= 0:
|
if cur_page <= 0:
|
||||||
drafts = Draft.objects.filter(blog=b)
|
drafts = Draft.objects.filter(blog=b).order_by('-creation_date')
|
||||||
else:
|
else:
|
||||||
drafts = []
|
drafts = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user