akvo.rsr.models.organisation_budget module
- class akvo.rsr.models.organisation_budget.LineBasic(*args, **kwargs)[source]
Bases:
Model
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationBudget(*args, **kwargs)[source]
Bases:
OrganisationFinanceBasic
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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.
- status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationCountryBudget(id, currency, value, value_date, period_start, period_end, status, organisation, country, text)[source]
Bases:
OrganisationBudget
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget_lines
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- country
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_country_display(*, field=<akvo.rsr.fields.ValidXMLCharField: country>)
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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>
- organisation
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.
- organisation_id
- 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.
- status
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationCountryBudgetLine(id, currency, value, value_date, reference, text, budget)[source]
Bases:
LineBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget
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.
- budget_id
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationExpenseLine(id, currency, value, value_date, reference, text, expenditure)[source]
Bases:
LineBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- expenditure
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.
- expenditure_id
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationFinanceBasic(*args, **kwargs)[source]
Bases:
Model
- 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.
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationRecipientOrgBudget(id, currency, value, value_date, period_start, period_end, status, organisation, recipient_organisation)[source]
Bases:
OrganisationBudget
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget_lines
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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>
- organisation
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.
- organisation_id
- 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.
- recipient_organisation
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.
- recipient_organisation_id
- status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationRecipientOrgBudgetLine(id, currency, value, value_date, reference, text, budget)[source]
Bases:
LineBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget
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.
- budget_id
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationRegionBudget(id, currency, value, value_date, period_start, period_end, status, organisation, region, region_vocabulary, region_vocabulary_uri, text)[source]
Bases:
OrganisationBudget
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget_lines
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- get_region_display(*, field=<akvo.rsr.fields.ValidXMLCharField: region>)
- get_region_vocabulary_display(*, field=<akvo.rsr.fields.ValidXMLCharField: region_vocabulary>)
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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>
- organisation
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.
- organisation_id
- 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.
- 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.
- status
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationRegionBudgetLine(id, currency, value, value_date, reference, text, budget)[source]
Bases:
LineBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget
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.
- budget_id
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationTotalBudget(id, currency, value, value_date, period_start, period_end, status, organisation)[source]
Bases:
OrganisationBudget
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget_lines
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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>
- organisation
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.
- organisation_id
- 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.
- status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationTotalBudgetLine(id, currency, value, value_date, reference, text, budget)[source]
Bases:
LineBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- budget
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.
- budget_id
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- reference
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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class akvo.rsr.models.organisation_budget.OrganisationTotalExpenditure(id, currency, value, value_date, period_start, period_end, organisation)[source]
Bases:
OrganisationFinanceBasic
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- currency
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- expense_lines
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- get_currency_display(*, field=<akvo.rsr.fields.ValidXMLCharField: currency>)
- 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>
- organisation
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.
- organisation_id
- 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.
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.