- Timestamp:
- Apr 18, 2010, 5:49:35 PM (15 years ago)
- Branches:
- master, client
- Children:
- 00e722e
- Parents:
- 5724bd5
- git-author:
- Alex Dehnert <adehnert@…> (04/18/10 17:49:35)
- git-committer:
- Alex Dehnert <adehnert@…> (04/18/10 17:49:35)
- Location:
- remit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/settings.py
r0f53aae r6f24604 27 27 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. 28 28 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. 29 30 BASE_COMMITTEE_PATH = ['Accounts', 'Assets', ] 29 31 30 32 from local_settings import * -
remit/vouchers/views.py
rb34d568 r6f24604 36 36 class CommitteesField(ModelChoiceField): 37 37 def __init__(self, *args, **kargs): 38 base_area = BudgetArea.get_by_path( ['Accounts', 'Assets', 'Budget', ])38 base_area = BudgetArea.get_by_path(settings.BASE_COMMITTEE_PATH) 39 39 self.strip_levels = base_area.depth 40 40 areas = (base_area.get_descendants()
Note: See TracChangeset
for help on using the changeset viewer.