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
71
attachment: nullboolean.patch
(892 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- models.py 2009-07-31 19:33:45.000000000 +0100
+++ /home/andy/projects/tryingtobegreen/branches/django/code/tryingtobegreen/apps/forum/models.py 2009-08-04 16:46:55.000000000 +0100
@@ -152,8 +152,8 @@ class Thread(models.Model):
"""
forum = models.ForeignKey(Forum)
title = models.CharField(_("Title"), max_length=100)
- sticky = models.BooleanField(_("Sticky?"), blank=True, null=True, default=False)
- closed = models.BooleanField(_("Closed?"), blank=True, null=True, default=False)
+ sticky = models.NullBooleanField(_("Sticky?"), blank=True, null=True, default=False)
+ closed = models.NullBooleanField(_("Closed?"), blank=True, null=True, default=False)
posts = models.IntegerField(_("Posts"), default=0)
views = models.IntegerField(_("Views"), default=0)
latest_post_time = models.DateTimeField(_("Latest Post Time"), blank=True, null=True)
Powered by
Google Project Hosting