akvo.rsr.models.sector module
- class akvo.rsr.models.sector.Sector(id, project, sector_code, text, vocabulary, vocabulary_uri, percentage)[source]
Bases:
Model
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- 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>
- 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 aForwardManyToOneDescriptor
instance.
- project_id
- sector_code
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.
- 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.