mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed all E226 violations
This commit is contained in:
@@ -363,7 +363,7 @@ class BaseFormSet(object):
|
||||
if self.can_order:
|
||||
# Only pre-fill the ordering field for initial forms.
|
||||
if index is not None and index < self.initial_form_count():
|
||||
form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_('Order'), initial=index+1, required=False)
|
||||
form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_('Order'), initial=index + 1, required=False)
|
||||
else:
|
||||
form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_('Order'), required=False)
|
||||
if self.can_delete:
|
||||
|
||||
Reference in New Issue
Block a user