Source

django-class-views-experiments / magicnew_with_configure.py

Diff from to

magicnew_with_configure.py

         class SubClass(cls):
             pass
         for key, val in kwargs.items():
-            setattr(cls, key, val)
+            setattr(SubClass, key, val)
         return SubClass
 
 class MyView(View):