models_utils
main.models_utils
¤
General utilities for ProCat models.
Classes¤
Warning
¤
Warning mixin to collect possible model object issues.
Attributes¤
has_warnings
property
¤
Flag that indicates if there are any warnings.
It runs the warnings method and checks if it is empty or not.
warnings
property
¤
List of warnings, created dynamically.
It looks for class attributes which start with 'warn', runs them, and appends either the string outlining the warning, or None if there is no warning flagged.