feat: setting default attributes after deal creating
This commit is contained in:
@ -51,8 +51,10 @@ class ModuleService(
|
||||
|
||||
module_schema = module_attrs_dict.get(module.id)
|
||||
if not module_schema:
|
||||
module_data = module.__dict__
|
||||
del module_data["attributes"]
|
||||
module_schema = ModuleWithAttributesSchema(
|
||||
**module.__dict__,
|
||||
**module_data,
|
||||
attributes=[new_attr] if new_attr else [],
|
||||
)
|
||||
module_attrs_dict[module.id] = module_schema
|
||||
|
||||
Reference in New Issue
Block a user