diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index 0383f1c72ad..bd41063e43a 100644 --- a/django/contrib/admin/helpers.py +++ b/django/contrib/admin/helpers.py @@ -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)