Opened 17 years ago

Closed 17 years ago

#4920 closed (duplicate)

newforms-admin TabularInline with ManyToManyField breaks

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: Keywords: newforms-admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the newforms-admin, if a model has an inline (I've had issues with StackedInline and TabularInline) and the model used in the inline has a ManyToManyField the admin breaks returning:

Exception Value: 'StackedInline' object has no attribute 'filter_vertical'
Exception Location: /home/code/django/contrib/admin/options.py in formfield_for_dbfield, line 114

Exception Value: 'TabularInline' object has no attribute 'filter_vertical'
Exception Location: /home/code/django/contrib/admin/options.py in formfield_for_dbfield, line 114

It works fine if the ManyToManyField is commented out of the inline model temporarily.
The model with the ManyToManyField works fine in the admin on its own (not called as an edit inline).

Change History (1)

comment:1 by Russell Keith-Magee, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #4761

Note: See TracTickets for help on using tickets.
Back to Top