Changeset 857256d for remit/vouchers


Ignore:
Timestamp:
Apr 27, 2010, 3:39:45 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
b1e217a
Parents:
6eb1795
git-author:
Alex Dehnert <adehnert@…> (04/27/10 03:39:45)
git-committer:
Alex Dehnert <adehnert@…> (04/27/10 03:39:45)
Message:

Make depth of the committee hierarchy configurable

The UA and ESP have a two-level hierarchy:

UA:

  • General
    • Senate, Exec, Operating
  • Committees
    • All the committees

ESP:

  • Programs
    • All the programs
  • Officers
    • All the officers

However, many groups are likely to have a natural single-level hierarchy,
and Remit should not force them to contort their accounting to fit
Remit's needs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/vouchers/views.py

    r82211ea r857256d  
    4141        self.strip_levels = base_area.depth
    4242        areas = (base_area.get_descendants()
    43             .filter(depth__lte=base_area.depth+2)
     43            .filter(depth__lte=base_area.depth+settings.COMMITTEE_HIERARCHY_LEVELS)
    4444            .exclude(name='Holding')
    4545        )
Note: See TracChangeset for help on using the changeset viewer.