diff options
| author | Tim Graham <timograham@gmail.com> | 2019-01-02 18:18:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-02 18:18:19 -0500 |
| commit | 0004daa536890fdb389c895baaa21bea6a1f7073 (patch) | |
| tree | 9f66a0ce81466d8fa7043e70f0d96b9cc3350473 /django/forms | |
| parent | 5bbf31634faad13658dc7bcaeb8139d8625e4349 (diff) | |
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/formsets.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 1b95bfa4c5..ed93fa852e 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -427,11 +427,17 @@ def formset_factory(form, formset=BaseFormSet, extra=1, can_order=False, # limit is simply max_num + DEFAULT_MAX_NUM (which is 2*DEFAULT_MAX_NUM # if max_num is None in the first place) absolute_max = max_num + DEFAULT_MAX_NUM - attrs = {'form': form, 'extra': extra, - 'can_order': can_order, 'can_delete': can_delete, - 'min_num': min_num, 'max_num': max_num, - 'absolute_max': absolute_max, 'validate_min': validate_min, - 'validate_max': validate_max} + attrs = { + 'form': form, + 'extra': extra, + 'can_order': can_order, + 'can_delete': can_delete, + 'min_num': min_num, + 'max_num': max_num, + 'absolute_max': absolute_max, + 'validate_min': validate_min, + 'validate_max': validate_max, + } return type(form.__name__ + 'FormSet', (formset,), attrs) |
