Package madrona :: Package group_management :: Module models
[hide private]

Source Code for Module madrona.group_management.models

 1  from django.contrib.gis.db import models 
 2  from django.contrib.auth.models import User, Group 
 3   
4 -class GroupRequest(models.Model):
5 """ 6 store user's requests for group membership 7 """ 8 user = models.ForeignKey(User) 9 group = models.ForeignKey(Group) 10 date_requested = models.DateTimeField(auto_now_add=True, verbose_name="Date Requested") 11 notes = models.TextField(blank=True) 12
13 - def __unicode__(self):
14 return "%s requests membership with %s" % (self.user.username, self.group.name)
15