akvo.rsr.models.humanitarian_scope module
- class akvo.rsr.models.humanitarian_scope.HumanitarianScope(id, project, code, type, vocabulary, vocabulary_uri, text)[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_type_display(*, field=<akvo.rsr.fields.ValidXMLCharField: type>)
- get_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: vocabulary>)
- 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 aForwardManyToOneDescriptor
instance.
- project_id
- text
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- type
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.