diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 13:45:05 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 13:45:05 +0200 |
| commit | 19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3 (patch) | |
| tree | cc018b121b7b6965f3cb9ab2dc57c8ec01090fb3 /budget/utils.py | |
| parent | 48bc551853b8b0067cdaeef98b3e454c3249f98f (diff) | |
| download | ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.zip ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.tar.gz ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.tar.bz2 | |
merge with master
Diffstat (limited to 'budget/utils.py')
| -rw-r--r-- | budget/utils.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/budget/utils.py b/budget/utils.py index df165b5..52fd151 100644 --- a/budget/utils.py +++ b/budget/utils.py @@ -18,21 +18,6 @@ def slugify(value): return re.sub('[-\s]+', '-', value) -def get_billform_for(project, set_default=True, **kwargs): - """Return an instance of BillForm configured for a particular project. - - :set_default: if set to True, on GET methods (usually when we want to - display the default form, it will call set_default on it. - - """ - form = BillForm(**kwargs) - form.payed_for.choices = form.payer.choices = [(str(m.id), m.name) for m in project.active_members] - form.payed_for.default = [str(m.id) for m in project.active_members] - - if set_default and request.method == "GET": - form.set_default() - return form - class Redirect303(HTTPException, RoutingException): """Raise if the map requests a redirect. This is for example the case if `strict_slashes` are activated and an url that requires a trailing slash. |
