diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py
index 7807e72..d87f717 100644
a
|
b
|
class InlineAdminForm(AdminForm):
|
146 | 146 | yield InlineFieldset(self.formset, self.form, name, **options) |
147 | 147 | |
148 | 148 | def has_auto_field(self): |
149 | | for field in self.form._meta.model._meta.fields: |
150 | | if field.auto_created: |
151 | | return True |
152 | | return False |
| 149 | return self.form._meta.model._meta.has_auto_field |
153 | 150 | |
154 | 151 | def field_count(self): |
155 | 152 | # tabular.html uses this function for colspan value. |