Skip to content

Commit

Permalink
make it possible to create group-less wiki page via admin
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Aug 18, 2010
1 parent 1b8cbb2 commit bb4b81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wakawaka/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class WikiPage(models.Model):
created = models.DateTimeField(_('created'), auto_now_add=True)
modified = models.DateTimeField(_('modified'), auto_now=True)

content_type = models.ForeignKey(ContentType, null=True)
object_id = models.PositiveIntegerField(null=True)
content_type = models.ForeignKey(ContentType, blank=True, null=True)
object_id = models.PositiveIntegerField(blank=True, null=True)
group = generic.GenericForeignKey("content_type", "object_id")

class Meta:
Expand Down

0 comments on commit bb4b81a

Please sign in to comment.