Changeset 6d986af for asadb/forms


Ignore:
Timestamp:
Sep 26, 2011, 1:18:16 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
3087933
Parents:
8d43bd4
git-author:
Alex Dehnert <adehnert@…> (09/26/11 01:18:16)
git-committer:
Alex Dehnert <adehnert@…> (09/26/11 01:18:16)
Message:

Add a unicode for the membership update models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/models.py

    r05129a7 r6d986af  
    163163    no_discrimination = models.BooleanField(help_text=discrimination_statement)
    164164
     165    def __unicode__(self, ):
     166        return "GroupMembershipUpdate for %s" % (self.group, )
    165167
    166168
     
    169171    username = models.CharField(max_length=30)
    170172    groups = models.ManyToManyField(groups.models.Group, help_text="By selecting a group here, you indicate that you are an active member of the group in question.<br>If your group does not appear in the list above, then please email asa-exec@mit.edu.<br>")
     173
     174    def __unicode__(self, ):
     175        return "PersonMembershipUpdate for %s" % (self.username, )
Note: See TracChangeset for help on using the changeset viewer.