intranet.apps.nomination package

Submodules

intranet.apps.nomination.apps module

class intranet.apps.nomination.apps.NominationConfig(app_name, app_module)[source]

Bases: AppConfig

name = 'intranet.apps.nomination'

intranet.apps.nomination.models module

class intranet.apps.nomination.models.Nomination(*args, **kwargs)[source]

Bases: Model

Represents a user nominating another user for a position

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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.parent is a ForwardManyToOneDescriptor instance.

nominator_id
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.parent is a ForwardManyToOneDescriptor instance.

nominee_id
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.parent is a ForwardManyToOneDescriptor instance.

position_id
class intranet.apps.nomination.models.NominationPosition(*args, **kwargs)[source]

Bases: Model

Represents a position that people will be nominated for

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: 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.children is a ReverseManyToOneDescriptor instance.

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.

intranet.apps.nomination.tests module

intranet.apps.nomination.urls module

intranet.apps.nomination.views module

Module contents