Mercurial > public > sg101
diff forums/models.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | 4619290d171d |
children | eeaf387803c6 |
line wrap: on
line diff
--- a/forums/models.py Mon Dec 14 20:42:20 2015 -0600 +++ b/forums/models.py Tue Dec 15 21:01:07 2015 -0600 @@ -19,7 +19,7 @@ name = models.CharField(max_length=80) slug = models.SlugField(max_length=80) position = models.IntegerField(blank=True, default=0) - groups = models.ManyToManyField(Group, blank=True, null=True, + groups = models.ManyToManyField(Group, blank=True, help_text="If groups are assigned to this category, only members" \ " of those groups can view this category.") @@ -86,7 +86,7 @@ slug = models.SlugField(max_length=80) description = models.TextField(blank=True, default='') position = models.IntegerField(blank=True, default=0) - moderators = models.ManyToManyField(Group, blank=True, null=True) + moderators = models.ManyToManyField(Group, blank=True) # denormalized fields to reduce database hits topic_count = models.IntegerField(blank=True, default=0) @@ -284,7 +284,7 @@ update_date = models.DateTimeField(db_index=True) body = models.TextField() html = models.TextField() - user_ip = models.IPAddressField(blank=True, default='', null=True) + user_ip = models.GenericIPAddressField(blank=True, default='', null=True) attachments = models.ManyToManyField(Oembed, through='Attachment') class Meta: