- Timestamp:
- Sep 10, 2012, 5:01:47 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- e0632f6
- Parents:
- 26fd6cf
- git-author:
- Alex Dehnert <adehnert@…> (09/10/12 05:01:47)
- git-committer:
- Alex Dehnert <adehnert@…> (09/10/12 05:01:47)
- File:
-
- 1 edited
-
asadb/groups/models.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/models.py
ra03cb61 r3af5d74 1 1 from django.db import models 2 from django.core.validators import RegexValidator 2 3 from django.contrib.auth.models import User 3 4 from django.template.defaultfilters import slugify … … 21 22 group_status__slug='active', 22 23 ) 24 25 locker_validator = RegexValidator(regex=r'^[-A-Za-z0-9_.]+$', message='Enter a valid Athena locker.') 23 26 24 27 class Group(models.Model): … … 42 45 main_account_id = models.IntegerField(null=True, blank=True, ) 43 46 funding_account_id = models.IntegerField(null=True, blank=True, ) 44 athena_locker = models.CharField(max_length=20, blank=True, help_text="Often, this will appear in your group's URL --- http://web.mit.edu/SOME_VARIANT_OF_GROUP_NAME/, http://www.mit.edu/~SOME_VARIANT_OF_GROUP_NAME/ and http://SOME_VARIANT_OF_GROUP_NAME.scripts.mit.edu/ all correspond to a locker name of SOME_VARIANT_OF_GROUP_NAME. Also, you can probably find this in your entry in the old database.")47 athena_locker = models.CharField(max_length=20, blank=True, validators=[locker_validator]) 45 48 recognition_date = models.DateTimeField() 46 49 update_date = models.DateTimeField(editable=False, )
Note: See TracChangeset
for help on using the changeset viewer.