My favorites
▼
|
Sign in
django-forum
Simple Django Forum Component
Project Home
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
52
attachment: change.patch
(1.2 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: django-forum/admin.py
===================================================================
--- django-forum/admin.py (revision 37)
+++ django-forum/admin.py (working copy)
@@ -2,7 +2,7 @@
from forum.models import Forum, Thread, Post, Subscription
class ForumAdmin(admin.ModelAdmin):
- list_display = ('title', '_parents_repr')
+ list_display = ('title', '_parents_repr', 'ordering')
ordering = ['parent', 'title']
prepopulated_fields = {"slug": ("title",)}
Index: django-forum/models.py
===================================================================
--- django-forum/models.py (revision 37)
+++ django-forum/models.py (working copy)
@@ -26,6 +26,7 @@
description = models.TextField(_("Description"))
threads = models.IntegerField(_("Threads"), default=0)
posts = models.IntegerField(_("Posts"), default=0)
+ ordering = models.IntegerField(_("Ordering"), blank=True, null=True)
def _get_forum_latest_post(self):
"""This gets the latest post for the forum"""
@@ -103,7 +104,7 @@
return u'%s' % self.title
class Meta:
- ordering = ['title',]
+ ordering = ['ordering', 'title',]
verbose_name = _('Forum')
verbose_name_plural = _('Forums')
Powered by
Google Project Hosting