Changeset 169d7b5


Ignore:
Timestamp:
Jan 7, 2010, 3:37:13 AM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
6b8d891
Parents:
dbc9bf9
git-author:
Alex Dehnert <adehnert@…> (01/07/10 03:37:13)
git-committer:
Alex Dehnert <adehnert@…> (01/07/10 03:37:13)
Message:

indented_name option to strip levels of indent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • treasury/finance_core/models.py

    rb26026c r169d7b5  
    5858        return html
    5959
    60     def indented_name(self):
    61         return self.indent_str*self.depth + unicode(self)
     60    def indented_name(self, strip_levels=0):
     61        return self.indent_str*(self.depth-strip_levels) + unicode(self)
    6262
    6363    def __unicode__(self,):
Note: See TracChangeset for help on using the changeset viewer.