Refactor of class_setting from init in typeclass so we can just call it from django admin, and avoid weirdness of calling init twice, which seemed to mess things up
This commit is contained in:
parent
560def1f2b
commit
ae0b4bad55
2 changed files with 38 additions and 34 deletions
|
|
@ -148,7 +148,7 @@ class ObjectDBAdmin(admin.ModelAdmin):
|
|||
if not change:
|
||||
# adding a new object
|
||||
# have to call init with typeclass passed to it
|
||||
obj.__init__(typeclass=obj.db_typeclass_path)
|
||||
obj.set_class_from_typeclass(typeclass_path=obj.db_typeclass_path)
|
||||
obj.basetype_setup()
|
||||
obj.basetype_posthook_setup()
|
||||
obj.at_object_creation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue