intranet.apps.nomination package¶
Submodules¶
intranet.apps.nomination.apps module¶
intranet.apps.nomination.models module¶
-
class
intranet.apps.nomination.models.Nomination(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelRepresents a user nominating another user for a position
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
nominator¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
nominator_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
nominee¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
nominee_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
position¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
position_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
intranet.apps.nomination.models.NominationPosition(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelRepresents a position that people will be nominated for
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
nominations¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
objects= <django.db.models.manager.Manager object>¶
-
position_name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception