Opened 11 years ago

Closed 11 years ago

#21931 closed Uncategorized (needsinfo)

DeleteProtectedModelForm has no fields attribute

Reported by: Cody Scott Owned by: nobody
Component: Uncategorized Version: 1.7-alpha-1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using the 1.7 alpha the runserver console has a depreciation warning

.../python2.7/site-packages/Django-1.7a1-py2.7.egg/django/contrib/admin/options.py:1792: DeprecationWarning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form DeleteProtectedModelForm needs updating

class DeleteProtectedModelForm(base_model_form):

https://github.com/django/django/blob/76ff266df1d68eb76836f159b799ed3e64979089/django/contrib/admin/options.py#L1798

Change History (1)

comment:1 by Tim Graham, 11 years ago

Resolution: needsinfo
Status: newclosed

Are you using a custom form for your ModelAdmin that needs to be updated as noted in the message? If not, could you please provide steps to reproduce the issue and reopen the ticket? Thanks.

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