Changeset ef118cf for asadb/space/models.py
- Timestamp:
- Feb 11, 2014, 2:22:25 AM (12 years ago)
- Branches:
- master, stable, stage
- Children:
- d4f571c
- Parents:
- 2563230 (diff), e5c5180 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Alex Dehnert <adehnert@…> (02/11/14 02:22:25)
- git-committer:
- Alex Dehnert <adehnert@…> (02/11/14 02:22:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/space/models.py
r2563230 ref118cf 10 10 11 11 EXPIRE_OFFSET = datetime.timedelta(seconds=1) 12 13 LOCK_DB_UPDATE_NONE = 'none' 14 LOCK_DB_UPDATE_CAC_CARD = 'cac-card' 15 lock_db_update_choices = ( 16 (LOCK_DB_UPDATE_NONE, "No database management"), 17 (LOCK_DB_UPDATE_CAC_CARD, "CAC-managed card-based access"), 18 ) 19 20 class LockType(models.Model): 21 name = models.CharField(max_length=50) 22 slug = models.SlugField(unique=True, ) 23 description = models.TextField() 24 info_addr = models.EmailField(default='asa-exec@mit.edu', help_text='Address groups should email to get more information about managing access through this lock type.') 25 info_url = models.URLField(blank=True, help_text='URL that groups can visit to get more information about this lock type.') 26 db_update = models.CharField(max_length=20, default='none', choices=lock_db_update_choices) 27 28 def __unicode__(self, ): 29 return self.name 30 12 31 13 32 class Space(models.Model): 14 33 number = models.CharField(max_length=20, unique=True, ) 15 34 asa_owned = models.BooleanField(default=True, ) 35 lock_type = models.ForeignKey(LockType) 16 36 merged_acl = models.BooleanField(default=False, help_text="Does this room have a single merged ACL, that combines all groups together, or CAC maintain a separate ACL per-group? Generally, the shared storage offices get a merged ACL and everything else doesn't.") 17 37 notes = models.TextField(blank=True, )
Note: See TracChangeset
for help on using the changeset viewer.