source: asadb/forms/models.py @ 2f7114b

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
RevLine 
[80982de]1from django.db import models
2
3import datetime
4
5import groups.models
6
7class FYSM(models.Model):
8    group = models.ForeignKey(groups.models.Group)
[dafa3c8]9    display_name = models.CharField(max_length=50)
[80982de]10    year = models.IntegerField()
11    website = models.URLField()
[80194d8]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.")
[80982de]15    logo = models.ImageField(upload_to='fysm/logos', )
[dafa3c8]16    tags = models.ManyToManyField('FYSMTag', blank=True, )
[80982de]17
18    class Meta:
19        verbose_name = "FYSM submission"
20
[dafa3c8]21class FYSMTag(models.Model):
[80982de]22    name = models.CharField(max_length=10)
[dafa3c8]23    slug = models.SlugField()
[80982de]24    blurb = models.TextField()
[aba463b]25
26    def __str__(self, ):
27        return self.name
[dafa3c8]28
29    class Meta:
30        verbose_name = "FYSM tag"
Note: See TracBrowser for help on using the repository browser.