Changeset 3235c66


Ignore:
Timestamp:
Jan 7, 2010, 1:12:27 AM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
68bd119
Parents:
269db50
git-author:
Alex Dehnert <adehnert@…> (01/07/10 01:12:27)
git-committer:
Alex Dehnert <adehnert@…> (01/07/10 01:12:27)
Message:

Add name and description to ReimbursementRequest?

Location:
treasury/vouchers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • treasury/vouchers/admin.py

    r93e2ab9 r3235c66  
    1616
    1717    fieldsets = [
     18        ('Expense details', {'fields': ['name', 'description', 'amount', 'budget_area', 'budget_term', ] }),
    1819        ('Request metadata', {'fields': ['submitter', 'request_time', 'approval_time', 'printing_time', ]}),
    1920        ('Recipient', {'fields': ['check_to_name', 'check_to_email', 'check_to_addr', ] }),
    20         ('Expense details', {'fields': ['amount', 'budget_area', 'budget_term', ] }),
    2121    ]
    22     list_display = ('submitter', 'check_to_name', 'amount', 'budget_area', 'budget_term', )
     22    list_display = ('name', 'submitter', 'check_to_name', 'amount', 'budget_area', 'budget_term', )
    2323
    2424
  • treasury/vouchers/models.py

    r93e2ab9 r3235c66  
    1717    approval_time = models.DateTimeField(blank=True)
    1818    printing_time = models.DateTimeField(blank=True)
     19    name = models.CharField(max_length=50,)
     20    description = models.TextField(blank=True)
    1921
    2022    def __unicode__(self, ):
    21         return "%s (%s) (by %s) for $%s in %s during %s" % (
     23        return "%s: %s (%s) (by %s) for $%s in %s during %s" % (
     24            self.name,
    2225            self.check_to_name,
    2326            self.check_to_email,
Note: See TracChangeset for help on using the changeset viewer.