akvo.rsr.models.planned_disbursement module

class akvo.rsr.models.planned_disbursement.PlannedDisbursement(id, project, value, value_date, currency, updated, period_start, period_end, type, provider_organisation, provider_organisation_activity, receiver_organisation, receiver_organisation_activity)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

clean()[source]

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

currency

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

get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
get_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: type>)
iati_currency()[source]
iati_currency_unicode()[source]
iati_type()[source]
iati_type_unicode()[source]
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>
period_end

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

period_start

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

project

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.

project_id
provider_organisation

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.

provider_organisation_activity

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

provider_organisation_id
receiver_organisation

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.

receiver_organisation_activity

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

receiver_organisation_id
type

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

updated

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

value

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

value_date

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