Ignore:
Timestamp:
Apr 18, 2010, 5:49:35 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
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)
Message:

Make reimbursement base path configurable

Adds a BASE_COMMITTEE_PATH parameter (default ['Accounts', 'Assets', ])
to use as the base path for reimbursement requests.

UPGRADE NOTE: Previously the value was hardcoded as
['Accounts', 'Assets', 'Budget', ] --- previous deployments should make
sure to set BASE_COMMITTEE_PATH to that when upgrading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/vouchers/views.py

    rb34d568 r6f24604  
    3636class CommitteesField(ModelChoiceField):
    3737    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)
    3939        self.strip_levels = base_area.depth
    4040        areas = (base_area.get_descendants()
Note: See TracChangeset for help on using the changeset viewer.