Ignore:
Timestamp:
Jul 6, 2014, 11:48:25 PM (12 years ago)
Author:
Alex Dehnert <adehnert@…>
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)
Message:

WIP: gather info needed for RFPs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/vouchers/models.py

    r42b287c r2b31097  
    1010
    1111import datetime
     12import re
    1213
    1314APPROVAL_STATE_PENDING = 0
    … …  
    2021)
    2122
     23recipient_type_choices = (
     24    ('mit', 'MIT student, faculty, or staff', ),
     25    ('other', 'Other, including alumnus or affiliate', ),
     26)
    2227class ReimbursementRequest(models.Model):
    2328    submitter = models.CharField(max_length=30) # Username of submitter
     29    recipient_type = models.CharField(choices=recipient_type_choices, max_length=10, default='other')
    2430    check_to_first_name = models.CharField(max_length=50, verbose_name="check recipient's first name")
    2531    check_to_last_name = models.CharField(max_length=50, verbose_name="check recipient's last name")
    … …  
    196202
    197203class 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
    198207    create_time = models.DateTimeField(default=datetime.datetime.now)
    199208
Note: See TracChangeset for help on using the changeset viewer.