oioioi.portals.models
¶
Module Contents¶
Classes¶
Base class for tree models. |
|
Make subclasses preserve the alters_data attribute on overridden methods. |
|
Make subclasses preserve the alters_data attribute on overridden methods. |
- class oioioi.portals.models.Node(*args, **kwargs)[source]¶
Bases:
mptt.models.MPTTModel
Base class for tree models.
- get_lang_version(request=None)[source]¶
Tries to get a default language version for a current context (from a given request, then a current thread and then from the settings). If none matching version could be found, just return any.
- class oioioi.portals.models.NodeLanguageVersion(*args, **kwargs)[source]¶
Bases:
django.db.models.Model
Make subclasses preserve the alters_data attribute on overridden methods.
- class oioioi.portals.models.Portal(*args, **kwargs)[source]¶
Bases:
django.db.models.Model
Make subclasses preserve the alters_data attribute on overridden methods.
- clean()[source]¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.