Do not modify django_args directly
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 28 Feb 2009 12:10:49 +0000
changeset 1555 cba45797f4b9
parent 1554 163c879d1ffe
child 1556 c81109a8a1a1
Do not modify django_args directly This broke document listing since it used kwargs as filter. Patch by: Sverre Rabbelier
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Sat Feb 28 12:10:19 2009 +0000
+++ b/app/soc/views/helper/access.py	Sat Feb 28 12:10:49 2009 +0000
@@ -687,6 +687,7 @@
     """Checks that the user has the specified active role.
     """
 
+    django_args = django_args.copy()
     django_args['user'] = self.user
     self._checkIsActive(django_args, logic, ['user'])
 
@@ -698,6 +699,7 @@
     """
 
     fields = [field_name, 'user']
+    django_args = django_args.copy()
     django_args['user'] = self.user
     self._checkIsActive(django_args, logic, fields)