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
68
attachment: models.patch
(870 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- models_old.py 2009-08-01 00:06:38.000000000 +0200
+++ models.py 2009-07-30 21:01:45.000000000 +0200
@@ -27,8 +27,8 @@
slug = models.SlugField(_("Slug"))
parent = models.ForeignKey('self', blank=True, null=True, related_name='child')
description = models.TextField(_("Description"))
- threads = models.IntegerField(_("Threads"), default=0)
- posts = models.IntegerField(_("Posts"), default=0)
+ threads = models.IntegerField(_("Threads"), default=0, editable=False)
+ posts = models.IntegerField(_("Posts"), default=0, editable=False)
objects = ForumManager()
@@ -243,6 +243,8 @@
class Meta:
ordering = ('-time',)
+ verbose_name = _('post')
+ verbose_name_plural = _('posts')
def get_absolute_url(self):
return '%s?page=last#post%s' % (self.thread.get_absolute_url(), self.id)
Powered by
Google Project Hosting