[patch] [magic-removal] admin.views.main fixes
When I try to change user I got a following traceback in m-r [2434]:
TypeError at /admin/auth/user/1/
add() got an unexpected keyword argument 'message'
Request Method: POST
Request URL: http://localhost:8000/admin/auth/user/1/
Exception Type: TypeError
Exception Value: add() got an unexpected keyword argument 'message'
Exception Location: /store/django_no_magic/django/contrib/admin/views/main.py in change_stage, line 347
/store/django_no_magic/django/contrib/admin/views/main.py in change_stage
341. elif request.POST.has_key("_saveasnew"):
342. request.user.message_set.add(message=_('The %(name)s "%(obj)s" was added successfully. You may edit it again below.') % {'name': opts.verbose_name, 'obj': new_object})
343. return HttpResponseRedirect("../%s/" % pk_value)
344. elif request.POST.has_key("_addanother"):
345. request.user.message_set.add(message=msg + ' ' + (_("You may add another %s below.") % opts.verbose_name))
346. return HttpResponseRedirect("../add/")
347. else:
348. request.user.message_set.add(message=msg) ...
349. return HttpResponseRedirect("../")
350. else:
351. # Populate new_data with a "flattened" version of the current data.
352. new_data = manipulator.flatten_data()
353.
354. # TODO: do this in flatten_data...
Summary: |
[magic-removal] Adding a user fails in R2434 → [magic-removal] Editing a user fails in R2434
|
by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago
Summary: |
[magic-removal] Editing a user fails in R2434 → [patch] [magic-removal] admin.views.main use add instead of create to add messages
|
Summary: |
[patch] [magic-removal] admin.views.main use add instead of create to add messages → [patch] [magic-removal] admin.views.main fixes
|
by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago
Resolution: |
→ fixed
|
Status: |
new → closed
|
Component: |
Core framework → Tools
|
milestone: |
→ Version 1.1
|
priority: |
normal → highest
|
Severity: |
major → critical
|
Type: |
defect → enhancement
|
Version: |
magic-removal → new-admin
|
Component: |
Tools → Metasystem
|
milestone: |
Version 1.1 → Version 0.93
|
priority: |
highest → low
|
Severity: |
critical → blocker
|
Type: |
enhancement → task
|
Version: |
new-admin
|
fix