Created
October 30, 2012 08:18
Revisions
-
neara revised this gist
Oct 30, 2012 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,3 +6,7 @@ class Occupation(models.Model): def __unicode__(self): return self.section.name class OccupationForm(forms.ModelForm): class Meta: model = Occupation -
neara created this gist
Oct 30, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ class Occupation(models.Model): event = models.ForeignKey(Event, related_name='sections') section = models.ForeignKey(Section) expected_capacity = models.PositiveIntegerField( help_text='Max Capacity: %d' % self.section.crowd_capacity) def __unicode__(self): return self.section.name