Hi,
FYI, taking the latest code from upstream fixed the __dict__ stuff:
--- python-django-4.2.27.orig/django/template/context.py
+++ python-django-4.2.27/django/template/context.py
@@ -35,7 +35,9 @@ class BaseContext:
self.dicts.append(value)
def __copy__(self):
- duplicate = copy(super())
+ duplicate = BaseContext()
+ duplicate.__class__ = self.__class__
+ duplicate.__dict__ = copy(self.__dict__)
duplicate.dicts = self.dicts[:]
return duplicate
I'm not sure about the rest (yet?).
Cheers,
Thomas Goirand (zigo)