Explorar o código

Fixing an issue where group singletons lose other class fields

Kirk Trombley %!s(int64=5) %!d(string=hai) anos
pai
achega
f7349c1ab3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/command_system/database.py

+ 1 - 1
src/command_system/database.py

@@ -39,6 +39,6 @@ def as_group_singleton(cls):
 
     return type(
         cls.__name__,
-        (ModelBase,),
+        (ModelBase, cls),
         dict(**columns, get_or_create=classmethod(get_or_create_standin))
     )