소스 검색

Fixing an issue where group singletons lose other class fields

Kirk Trombley 5 년 전
부모
커밋
f7349c1ab3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))
     )