#1416 closed task (fixed)
[patch] [magic-removal] admin.views.main fixes
Reported by: | Nebojsa Djordjevic <nesh at studioquattro dot co dot yu> | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Metasystem | Version: | |
Severity: | blocker | Keywords: | |
Cc: | nesh@… | Triage Stage: | Unreviewed |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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...
Attachments (3)
Change History (10)
comment:1 by , 19 years ago
Summary: | [magic-removal] Adding a user fails in R2434 → [magic-removal] Editing a user fails in R2434 |
---|
by , 19 years ago
Attachment: | admin.diff added |
---|
comment:2 by , 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 |
---|
comment:3 by , 19 years ago
Summary: | [patch] [magic-removal] admin.views.main use add instead of create to add messages → [patch] [magic-removal] admin.views.main fixes |
---|
User use add instead of create
history use Context instead of template.RequestContext
comment:4 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
by , 19 years ago
Attachment: | mr-tutorial-fixes.diff added |
---|
Patch for doc/tutorial0X.txt files for the magic-removed branch
comment:5 by , 18 years ago
Component: | Core framework → Tools |
---|---|
milestone: | → Version 1.1 |
priority: | normal → highest |
Severity: | major → critical |
Type: | defect → enhancement |
Version: | magic-removal → new-admin |
comment:6 by , 18 years ago
Component: | Tools → Metasystem |
---|---|
milestone: | Version 1.1 → Version 0.93 |
priority: | highest → low |
Severity: | critical → blocker |
Type: | enhancement → task |
Version: | new-admin |
Note:
See TracTickets
for help on using tickets.
fix