1
0
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:
Joseph Kocherhans 2007-09-25 02:51:32 +00:00
parent b40f9b63bb
commit d5da0a5a23

View File

@ -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