stalker.models.mixins.ProjectMixin¶

-
class
stalker.models.mixins.ProjectMixin(project=None, **kwargs)¶ 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.-
__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.projectproject_id-