fysm-4-1iframespace-accessstablestagetest-hooks
Last change
on this file since 80982de was
80982de,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Add basic FYSM support
|
-
Property mode set to
100644
|
File size:
566 bytes
|
Rev | Line | |
---|
[80982de] | 1 | from django.db import models |
---|
| 2 | |
---|
| 3 | import datetime |
---|
| 4 | |
---|
| 5 | import groups.models |
---|
| 6 | |
---|
| 7 | class FYSM(models.Model): |
---|
| 8 | group = models.ForeignKey(groups.models.Group) |
---|
| 9 | year = models.IntegerField() |
---|
| 10 | website = models.URLField() |
---|
| 11 | contact_email = models.EmailField() |
---|
| 12 | description = models.TextField() |
---|
| 13 | logo = models.ImageField(upload_to='fysm/logos', ) |
---|
| 14 | tags = models.ManyToManyField('FYSMTags', blank=True, ) |
---|
| 15 | |
---|
| 16 | class Meta: |
---|
| 17 | verbose_name = "FYSM submission" |
---|
| 18 | |
---|
| 19 | class FYSMTags(models.Model): |
---|
| 20 | name = models.CharField(max_length=10) |
---|
| 21 | blurb = models.TextField() |
---|
Note: See
TracBrowser
for help on using the repository browser.