fysm-4-1iframespace-accessstablestagetest-hooks
|
Last change
on this file since 2f7114b was
80194d8,
checked in by Alex Dehnert <adehnert@…>, 16 years ago
|
|
Add legends
|
-
Property mode set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 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 | display_name = models.CharField(max_length=50) |
|---|
| 10 | year = models.IntegerField() |
|---|
| 11 | website = models.URLField() |
|---|
| 12 | join_url = models.URLField(help_text="If you have a specific web page for students interested in joining your group, you can link to it here. If you leave this blank it will default to your website.") |
|---|
| 13 | contact_email = models.EmailField(help_text="Give an address for students interested in joining the group to email (e.g., an officers list)") |
|---|
| 14 | description = models.TextField(help_text="Explain in about three or four sentences what your group does and why incoming freshmen should get involved.") |
|---|
| 15 | logo = models.ImageField(upload_to='fysm/logos', ) |
|---|
| 16 | tags = models.ManyToManyField('FYSMTag', blank=True, ) |
|---|
| 17 | |
|---|
| 18 | class Meta: |
|---|
| 19 | verbose_name = "FYSM submission" |
|---|
| 20 | |
|---|
| 21 | class FYSMTag(models.Model): |
|---|
| 22 | name = models.CharField(max_length=10) |
|---|
| 23 | slug = models.SlugField() |
|---|
| 24 | blurb = models.TextField() |
|---|
| 25 | |
|---|
| 26 | def __str__(self, ): |
|---|
| 27 | return self.name |
|---|
| 28 | |
|---|
| 29 | class Meta: |
|---|
| 30 | verbose_name = "FYSM tag" |
|---|
Note: See
TracBrowser
for help on using the repository browser.