@@ -0,0 +1,1397 @@
+from django.db import models%0A%0A%0Aclass Group(models.Model):%0A    class Meta:%0A        pass%0A%0A    VIS_PUBLIC = 0%0A    VIS_PRIVATE = 1%0A    VISIBILITY_CHOICES = (%0A        (VIS_PUBLIC, 'PUBLIC'),%0A        (VIS_PRIVATE, 'PRIVATE')%0A    )%0A%0A    MEMBER_ANYONE = 0%0A    MEMBER_REQUEST = 1%0A    MEMBER_INVITATION = 2%0A    MEMBERSHIP_CHOICES = (%0A        (MEMBER_ANYONE, 'ANYONE'),%0A        (MEMBER_REQUEST, 'REQUEST'),%0A        (MEMBER_INVITATION, 'INVITATION')%0A    )%0A%0A    VALID_ADMINS = 0%0A    VALID_MEMBERS = 1%0A    VALIDATION_CHOICES = (%0A        (VALID_ADMINS, 'ADMINS'),%0A        (VALID_MEMBERS, 'MEMBERS')%0A    )%0A%0A    TYPE_BASIC = 0%0A    TYPE_CURSUS = 1%0A    TYPE_ASSO = 2%0A    TYPE_PROMO = 3%0A    TYPE_SCHOOL = 4%0A    TYPE_CHOICES = (%0A        (TYPE_BASIC, 'BASIC'),%0A        (TYPE_CURSUS, 'CURSUS/DEPARTMENT'),%0A        (TYPE_ASSO, 'ASSOCIATION'),%0A        (TYPE_PROMO, 'PROMOTION'),%0A        (TYPE_SCHOOL, 'SCHOOL')%0A    )%0A%0A    name = models.CharField(max_length=254)%0A    visibility = models.SmallIntegerField(choices=VISIBILITY_CHOICES, default=VIS_PRIVATE)%0A    membership_policy = models.SmallIntegerField(choices=MEMBERSHIP_CHOICES, default=MEMBER_INVITATION)%0A    validation_policy = models.SmallIntegerField(choices=VALIDATION_CHOICES, default=VALID_ADMINS)%0A    type = models.SmallIntegerField(choices=TYPE_CHOICES, default=TYPE_BASIC)%0A%0A    def __str__(self):%0A        return %22%25s (%25s)%22 %25 (self.name, self.get_type_display())%0A

Create Group model