akvo.rsr.models.result.narrative_report module
- class akvo.rsr.models.result.narrative_report.NarrativeReport(id, project, category, text, published, period_start, period_end)[source]
- Bases: - Model- exception DoesNotExist
- Bases: - ObjectDoesNotExist
 - exception MultipleObjectsReturned
- Bases: - MultipleObjectsReturned
 - category
- 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.parentis a- ForwardManyToOneDescriptorinstance.
 - category_id
 - clean()[source]
- Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS. 
 - get_next_by_period_end(*, field=<django.db.models.fields.DateField: period_end>, is_next=True, **kwargs)
 - get_next_by_period_start(*, field=<django.db.models.fields.DateField: period_start>, is_next=True, **kwargs)
 - get_previous_by_period_end(*, field=<django.db.models.fields.DateField: period_end>, is_next=False, **kwargs)
 - get_previous_by_period_start(*, field=<django.db.models.fields.DateField: period_start>, is_next=False, **kwargs)
 - 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>
 - period_end
- A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed. 
 - period_start
- 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.parentis a- ForwardManyToOneDescriptorinstance.
 - project_id
 - published
- 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.