Allow for unmoderated groups that anyone can join

This commit is contained in:
2011-05-19 11:27:39 +01:00
parent fccd7fa1f7
commit dfa86a3250
3 changed files with 96 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ class GroupInformation(models.Model):
admins = models.ManyToManyField(User, blank=True)
public = models.BooleanField("Public", default=False, help_text="Indicates if the group is visible to all")
requestable = models.BooleanField("Requestable", default=False, help_text="Indicates if people can request to join this group")
moderated = models.BooleanField("Moderated", default=True, help_text="Indicates if the group requires new members to be accepted by a group admin")
parent = models.ForeignKey(Group, related_name="children", null=True, blank=True)
description = models.TextField(help_text="Description of the group and its permissions", blank=True)