Changeset 2b31097 for remit/vouchers/models.py
- Timestamp:
- Jul 6, 2014, 11:48:25 PM (12 years ago)
- Branches:
- master
- Children:
- 7ee21d8
- Parents:
- 4439c52
- git-author:
- Alex Dehnert <adehnert@…> (07/06/14 23:48:25)
- git-committer:
- Alex Dehnert <adehnert@…> (07/06/14 23:48:25)
- File:
-
- 1 edited
-
remit/vouchers/models.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remit/vouchers/models.py
r42b287c r2b31097 10 10 11 11 import datetime 12 import re 12 13 13 14 APPROVAL_STATE_PENDING = 0 … … 20 21 ) 21 22 23 recipient_type_choices = ( 24 ('mit', 'MIT student, faculty, or staff', ), 25 ('other', 'Other, including alumnus or affiliate', ), 26 ) 22 27 class ReimbursementRequest(models.Model): 23 28 submitter = models.CharField(max_length=30) # Username of submitter 29 recipient_type = models.CharField(choices=recipient_type_choices, max_length=10, default='other') 24 30 check_to_first_name = models.CharField(max_length=50, verbose_name="check recipient's first name") 25 31 check_to_last_name = models.CharField(max_length=50, verbose_name="check recipient's last name") … … 196 202 197 203 class RFP(models.Model): 204 addr_regex = re.compile(r'^(?P<addr>.+)\n(?P<city>.+), (?P<state>\w\w) (?P<zip>\d{5}(-\d{4})?)$') 205 addr_error = 'Address must two lines: a street address, followed by "<city>, <two letter state abbreviation> <zip>". For non-US addresses, please contact a Treasurer for help.' 206 198 207 create_time = models.DateTimeField(default=datetime.datetime.now) 199 208
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/chrome/site/your_project_logo.png)