careers.models module

class careers.models.JobOpening(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Information on a job opening.

DRAFTED = 'drafted'
VISIBLE = 'visible'
CLOSED = 'closed'
JOBOPENING_STATUSES = (('drafted', 'Drafted (not publicly visible)'), ('visible', 'Publicly visible'), ('closed', 'Closed'))
slug

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

announced

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

short_description

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

description

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

application_deadline

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

status

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.ManagerFromJobOpeningQuerySet object>
get_absolute_url()[source]
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_next_by_announced(*, field=<django.db.models.fields.DateField: announced>, is_next=True, **kwargs)
get_next_by_application_deadline(*, field=<django.db.models.fields.DateField: application_deadline>, is_next=True, **kwargs)
get_previous_by_announced(*, field=<django.db.models.fields.DateField: announced>, is_next=False, **kwargs)
get_previous_by_application_deadline(*, field=<django.db.models.fields.DateField: application_deadline>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

jobapplication_set

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.

class careers.models.JobApplication(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Filled by a candidate to a specific job.

RECEIVED = 'received'
VERIFIED = 'verified'
WITHDRAWN = 'withdrawn'
TURNEDDOWN = 'turneddown'
SHORTLISTED = 'shortlisted'
NOTSELECTED = 'notselected'
SELECTED = 'selected'
ACCEPTED = 'accepted'
DECLINED = 'declined'
JOBAPP_STATUSES = (('received', 'Application received'), ('verified', 'Application received, email has been verified by applicant'), ('turneddown', 'Applicant has not been shortlisted for the position'), ('shortlisted', 'Applicant has been shortlisted for the position'), ('notselected', 'Applicant has not been selected for the position'), ('selected', 'Applicant has been selected for the position'), ('accepted', 'Applicant has accepted job offer'), ('declined', 'Applicant has turned down job offer'))
uuid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

status

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

last_udpated

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

jobopening

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.

date_received

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

first_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

last_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

email

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

motivation

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
cv

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
get_absolute_url()[source]
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_next_by_date_received(*, field=<django.db.models.fields.DateTimeField: date_received>, is_next=True, **kwargs)
get_next_by_last_udpated(*, field=<django.db.models.fields.DateTimeField: last_udpated>, is_next=True, **kwargs)
get_previous_by_date_received(*, field=<django.db.models.fields.DateTimeField: date_received>, is_next=False, **kwargs)
get_previous_by_last_udpated(*, field=<django.db.models.fields.DateTimeField: last_udpated>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
get_title_display(*, field=<django.db.models.fields.CharField: title>)
jobopening_id
objects = <django.db.models.manager.Manager object>