Kaydet (Commit) 327a00f4 authored tarafından Tim Graham's avatar Tim Graham

Removed InlineAdminForm.field_count()

This method is unused since 337d102b
üst 62df1834
......@@ -310,18 +310,6 @@ class InlineAdminForm(AdminForm):
return True
return False
def field_count(self):
# tabular.html uses this function for colspan value.
num_of_fields = 0
if self.has_auto_field():
num_of_fields += 1
num_of_fields += len(self.fieldsets[0][1]["fields"])
if self.formset.can_order:
num_of_fields += 1
if self.formset.can_delete:
num_of_fields += 1
return num_of_fields
def pk_field(self):
return AdminField(self.form, self.formset._pk_field.name, False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment