Tools
Tool of Paladins - A set of auxiliary methods.
accumulate_error(err_msg, params)
¶
Accumulating errors to ModelName.field_name.errors .
Source code in src\ramifice\paladins\tools.py
check_uniqueness(value, params, field_name=None, is_multi_language=False)
async
¶
Checking the uniqueness of the value in the collection.
Source code in src\ramifice\paladins\tools.py
ignored_fields_to_none(inst_model)
¶
Reset the values of ignored fields to None.
panic_type_error(value_type, params)
¶
Unacceptable type of value.
Source code in src\ramifice\paladins\tools.py
refresh_from_mongo_doc(inst_model, mongo_doc)
¶
Update object instance from Mongo document.