Ignore:
Timestamp:
May 15, 2010, 11:37:31 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, iframe, space-access, stable, stage, test-hooks
Children:
df381cb
Parents:
2f7114b
git-author:
Alex Dehnert <adehnert@…> (05/15/10 23:37:31)
git-committer:
Alex Dehnert <adehnert@…> (05/15/10 23:37:31)
Message:

Use the name "category" consistently

We want to support ASA-defined "categories" and free-form "tags".
Unfortunately, when originally coding I used the terms interchangeably.
This replaces instances of the "tag" name with the "category" name,
thus freeing up "tag" for the new semantics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/models.py

    r80194d8 rc27da9e  
    1414    description = models.TextField(help_text="Explain in about three or four sentences what your group does and why incoming freshmen should get involved.")
    1515    logo = models.ImageField(upload_to='fysm/logos', )
    16     tags = models.ManyToManyField('FYSMTag', blank=True, )
     16    categories = models.ManyToManyField('FYSMCategory', blank=True, )
    1717
    1818    class Meta:
    1919        verbose_name = "FYSM submission"
    2020
    21 class FYSMTag(models.Model):
     21class FYSMCategory(models.Model):
    2222    name = models.CharField(max_length=10)
    2323    slug = models.SlugField()
     
    2828
    2929    class Meta:
    30         verbose_name = "FYSM tag"
     30        verbose_name = "FYSM category"
     31        verbose_name_plural = "FYSM categories"
Note: See TracChangeset for help on using the changeset viewer.