akvo.rsr.models.transaction module

class akvo.rsr.models.transaction.Transaction(id, project, reference, aid_type_vocabulary, aid_type, description, disbursement_channel, finance_type, flow_type, tied_status, transaction_date, transaction_type, value, value_date, currency, provider_organisation, provider_organisation_activity, receiver_organisation, receiver_organisation_activity, recipient_country, recipient_region, recipient_region_vocabulary, recipient_region_vocabulary_uri, humanitarian)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aid_type

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

aid_type_vocabulary

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

currency

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.

disbursement_channel

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

finance_type

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

flow_type

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

get_aid_type_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: aid_type_vocabulary>)
get_currency()[source]
get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
get_disbursement_channel_display(*, field=<akvo.rsr.fields.ValidXMLCharField: disbursement_channel>)
get_finance_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: finance_type>)
get_flow_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: flow_type>)
get_recipient_country_display(*, field=<akvo.rsr.fields.ValidXMLCharField: recipient_country>)
get_recipient_region_display(*, field=<akvo.rsr.fields.ValidXMLCharField: recipient_region>)
get_recipient_region_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: recipient_region_vocabulary>)
get_tied_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: tied_status>)
get_transaction_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: transaction_type>)
humanitarian

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

iati_aid_type()[source]
iati_aid_type_unicode()[source]
iati_currency()[source]
iati_currency_unicode()[source]
iati_disbursement_channel()[source]
iati_disbursement_channel_unicode()[source]
iati_finance_type()[source]
iati_finance_type_unicode()[source]
iati_flow_type()[source]
iati_flow_type_unicode()[source]
iati_recipient_country()[source]
iati_recipient_country_unicode()[source]
iati_recipient_region()[source]
iati_recipient_region_unicode()[source]
iati_recipient_region_vocabulary()[source]
iati_recipient_region_vocabulary_unicode()[source]
iati_tied_status()[source]
iati_tied_status_unicode()[source]
iati_transaction_type()[source]
iati_transaction_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>
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
recipient_country

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

recipient_region

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

recipient_region_vocabulary

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

recipient_region_vocabulary_uri

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

reference

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

sectors

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.

tied_status

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

transaction_date

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

transaction_type

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.

class akvo.rsr.models.transaction.TransactionSector(id, transaction, code, text, vocabulary, vocabulary_uri)[source]

Bases: Model

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.

get_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: vocabulary>)
iati_sector()[source]
iati_sector_unicode()[source]
iati_vocabulary()[source]
iati_vocabulary_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>
project_relation = 'transactions__sectors__in'
text

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

transaction

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.

transaction_id
vocabulary

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

vocabulary_uri

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