summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-01 19:33:44 -0500
committerTim Graham <timograham@gmail.com>2015-02-01 20:13:58 -0500
commit26e07a996d9ca34b6a2582bf4112cd27fb414959 (patch)
treef11e1df35d43a9df2a74f3c1ef970b6aafe2530b
parentfe770a6452919807bba59c125b02464290feeba1 (diff)
[1.8.x] Removed InlineAdminForm.field_count()
This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302 Backport of 327a00f48b71b5f82788f3c9ee3cdb25b8e1ef1a from master
-rw-r--r--django/contrib/admin/helpers.py12
1 files changed, 0 insertions, 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)