kopia lustrzana https://github.com/wagtail/wagtail
Replaced occurance of 'xrange' with 'range'
rodzic
0272411222
commit
b56c18cb19
|
@ -49,7 +49,7 @@ class EditorsPickFormSet(EditorsPickFormSetBase):
|
|||
# Check there is at least one non-deleted form.
|
||||
non_deleted_forms = self.total_form_count()
|
||||
non_empty_forms = 0
|
||||
for i in xrange(0, self.total_form_count()):
|
||||
for i in range(0, self.total_form_count()):
|
||||
form = self.forms[i]
|
||||
if self.can_delete and self._should_delete_form(form):
|
||||
non_deleted_forms -= 1
|
||||
|
|
Ładowanie…
Reference in New Issue