stalker.models.mixins.ProjectMixin¶
-
class
stalker.models.mixins.ProjectMixin(project=None, **kwargs)[source]¶ Bases:
objectAllows connecting a
Projectto the mixed in object.This also forces a
all, delete-orphancascade, so when a :class:.Projectinstance is deleted then all the class instances that are inherited fromProjectMixinwill also be deleted. Meaning that, a class which also derives fromProjectMixinwill not be able to exists without a project (delete-orphancase).Parameters: project ( Project) – AProjectinstance holding the project which this object is related to. It can not be None, or anything other than aProjectinstance.Methods
__init__([project])Attributes
ProjectMixin.projectproject_id