Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2079 closed defect (fixed)

FileFields AddManipulator gives error in deepcopy

Reported by: daniel.tietze@… Owned by: Adrian Holovaty
Component: Core (Other) Version: magic-removal
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


After updating to revision 3070, image uploading suddenly stopped working.

Here's my code:

  manipulator = Picture.AddManipulator() 
  new_data = request.POST.copy()    # **
  picture =    

This breaks in the line marked with the following error:

Exception Type:
  Exception Value:
  __deepcopy__() takes exactly 2 arguments (1 given)
  Exception Location:
  /usr/lib64/python2.4/site-packages/django/utils/ in copy, line 187

Change History (2)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3081]) Fixed #2079 -- Fixed bug introduced in [3070] in django.utils.datastructures

comment:2 Changed 13 years ago by Luke Plant

Sorry, my bad. I didn't notice that MultiValueDict.copy() called deepcopy() without arguments (which the deepcopy algorithm doesn't do). Maybe the fix should go there, but it doesn't really matter.

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