stalker.models.mixins.ProjectMixin

Inheritance diagram of stalker.models.mixins.ProjectMixin
class stalker.models.mixins.ProjectMixin(project=None, **kwargs)

Bases: object

Allows connecting a Project to the mixed in object.

This also forces a all, delete-orphan cascade, so when a :class:.Project instance is deleted then all the class instances that are inherited from ProjectMixin will also be deleted. Meaning that, a class which also derives from ProjectMixin will not be able to exists without a project (delete-orphan case).

Parameters:project (Project) – A Project instance holding the project which this object is related to. It can not be None, or anything other than a Project instance.
__init__(project=None, **kwargs)

x.__init__(…) initializes x; see help(type(x)) for signature

Methods

__init__([project]) x.__init__(…) initializes x; see help(type(x)) for signature

Attributes

ProjectMixin.project
project_id