mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
newforms-admin: Changed RelatedFieldWidgetWrapper's deepcopy method to just return a reference to itself. Thanks Malcolm.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b40f9b63bb
commit
d5da0a5a23
@ -137,6 +137,6 @@ class RelatedFieldWidgetWrapper(object):
|
|||||||
return u''.join(output)
|
return u''.join(output)
|
||||||
|
|
||||||
def __deepcopy__(self, memo):
|
def __deepcopy__(self, memo):
|
||||||
# There is no reason to deepcopy self.admin_site, etc, so just return
|
# There's no reason to deepcopy admin_site, etc, so just return self.
|
||||||
# a shallow copy.
|
memo[id(self)] = self
|
||||||
return copy.copy(self)
|
return self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user