1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +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)
def __deepcopy__(self, memo):
# There is no reason to deepcopy self.admin_site, etc, so just return
# a shallow copy.
return copy.copy(self)
# There's no reason to deepcopy admin_site, etc, so just return self.
memo[id(self)] = self
return self