akvo.rsr.models.region module

class akvo.rsr.models.region.RecipientRegion(id, project, region, region_vocabulary, region_vocabulary_uri, percentage, text)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

get_region_display(*, field=<akvo.rsr.fields.ValidXMLCharField: region>)
get_region_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: region_vocabulary>)
iati_region()[source]
iati_region_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>
percentage

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
region

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

region_vocabulary

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

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.

text

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