Opened 18 years ago
Closed 18 years ago
#5583 closed (duplicate)
admin crashes on edit form pages since r6342
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | contrib.admin | Version: | newforms-admin |
| 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
Only r6327 of the newforms-admin is usable for me right now. Since r6342, attempting to edit an object results in the following error:
Traceback (most recent call last):
File "/home/sjulean/projects/django/django/core/handlers/base.py" in _real_get_response
81. response = callback(request, *callback_args, **callback_kwargs)
File "/home/sjulean/projects/django/django/contrib/admin/sites.py" in root
136. return self.model_page(request, *url.split('/', 2))
File "/home/sjulean/projects/django/django/contrib/admin/sites.py" in model_page
153. return admin_obj(request, rest_of_url)
File "/home/sjulean/projects/django/django/contrib/admin/options.py" in __call__
245. return self.add_view(request)
File "/home/sjulean/projects/django/django/contrib/admin/options.py" in add_view
474. form = ModelForm(initial=request.GET)
File "/home/sjulean/projects/django/django/newforms/forms.py" in __init__
81. self.fields = self.base_fields.copy()
File "/home/sjulean/projects/django/django/newforms/forms.py" in copy
34. return SortedDictFromList([(k, copy.deepcopy(v)) for k, v in self.items()])
File "/home/sjulean/projects/django/django/newforms/fields.py" in __deepcopy__
107. result.widget = copy.deepcopy(self.widget, memo)
TypeError at /admin/auth/user/add/
instancemethod expected at least 2 arguments, got 0
I can always reproduce this error by simply starting a new project, enabling the admin interface from settings and urls, doing a syncdb, and opening /admin/auth/user/add/.
Note:
See TracTickets
for help on using tickets.
Duplicate of #5505.