akvo.rsr.models.policy_marker module

class akvo.rsr.models.policy_marker.PolicyMarker(id, project, policy_marker, significance, vocabulary, vocabulary_uri, description)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

description

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

get_policy_marker_display(*, field=<akvo.rsr.fields.ValidXMLCharField: policy_marker>)
get_significance_display(*, field=<akvo.rsr.fields.ValidXMLCharField: significance>)
get_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: vocabulary>)
iati_policy_marker()[source]
iati_policy_marker_unicode()[source]
iati_significance()[source]
iati_significance_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>
policy_marker

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
significance

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

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.

akvo.rsr.models.policy_marker.update_pm_vocabulary(sender, **kwargs)[source]

Updates the vocabulary if not specified.