akvo.rsr.models.crs_add module

class akvo.rsr.models.crs_add.CrsAdd(*args, **kwargs)[source]

Bases: Model

Items specific to CRS++ reporting. Can only occur once per project.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

channel_code

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

commitment_date

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

get_channel_code_display(*, field=<akvo.rsr.fields.ValidXMLCharField: channel_code>)
get_loan_status_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: loan_status_currency>)
get_repayment_plan_display(*, field=<akvo.rsr.fields.ValidXMLCharField: repayment_plan>)
get_repayment_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: repayment_type>)
iati_channel_code()[source]
iati_channel_code_unicode()[source]
iati_currency()[source]
iati_currency_unicode()[source]
iati_repayment_plan()[source]
iati_repayment_plan_unicode()[source]
iati_repayment_type()[source]
iati_repayment_type_unicode()[source]
interest_arrears

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

interest_received

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

loan_status_currency

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

loan_status_value_date

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

loan_status_year

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

loan_terms_rate1

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

loan_terms_rate2

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>
other_flags

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.

principal_arrears

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

principal_outstanding

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 one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

project_id
repayment_final_date

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

repayment_first_date

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

repayment_plan

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

repayment_type

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

class akvo.rsr.models.crs_add.CrsAddOtherFlag(*args, **kwargs)[source]

Bases: Model

Other flag of CRS++ reporting.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

code

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

crs

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.

crs_id
get_code_display(*, field=<akvo.rsr.fields.ValidXMLCharField: code>)
iati_code()[source]
iati_code_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>
significance

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