From 327a00f48b71b5f82788f3c9ee3cdb25b8e1ef1a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 1 Feb 2015 19:33:44 -0500 Subject: [PATCH] Removed InlineAdminForm.field_count() This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302 --- django/contrib/admin/helpers.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index 0383f1c72a..bd41063e43 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)