akvo.rsr.models.model_querysets.organisation module

class akvo.rsr.models.model_querysets.organisation.OrganisationManager(*args, **kwargs)[source]

Bases: Manager

get_queryset()[source]

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class akvo.rsr.models.model_querysets.organisation.OrganisationQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: QuerySet

all_projects()[source]

returns a queryset with all projects that has self as any kind of partner

all_updates()[source]
allpartners()[source]
commercial()[source]
content_owned_organisations(exclude_orgs=None)[source]

Returns a list of Organisations of which these organisations are the content owner.

Includes self, is recursive.

The exclude_orgs parameter is used to avoid recursive calls that can happen in case there are organisations that set each other as content owned organisations.

employments()[source]
extendingpartners()[source]
fieldpartners()[source]
fundingpartners()[source]
governmental()[source]
has_location()[source]
knowledge()[source]
ngos()[source]
partners(role)[source]

return the organisations in the queryset that are partners of type role

reportingpartners()[source]
sponsorpartners()[source]
supportpartners()[source]
supportpartners_with_projects()[source]

return the organisations in the queryset that are support partners with published projects, not counting archived projects

users()[source]