akvo.rest.serializers.typeahead module

Akvo RSR is covered by the GNU Affero General Public License. See more details in the license.txt file located at the root folder of the Akvo RSR module. For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.

class akvo.rest.serializers.typeahead.TypeaheadOrganisationSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

fields = ('id', 'name', 'long_name')
model

alias of Organisation

class akvo.rest.serializers.typeahead.TypeaheadProjectSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

fields = ('id', 'title', 'subtitle')
model

alias of Project

class akvo.rest.serializers.typeahead.TypeaheadProjectUpdateSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

fields = ('id', 'project', 'title')
model

alias of ProjectUpdate

class akvo.rest.serializers.typeahead.TypeaheadSectorSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

fields = ('id', 'name')
model

alias of Sector

get_id(obj)[source]
get_name(obj)[source]
sectors = {'111': 'Education, Level Unspecified', '112': 'Basic Education', '113': 'Secondary Education', '114': 'Post-Secondary Education', '121': 'Health, General', '122': 'Basic Health', '123': 'Non-communicable diseases (NCDs)', '130': 'Population Policies/Programmes & Reproductive Health', '140': 'Water Supply & Sanitation', '151': 'Government & Civil Society-general', '152': 'Conflict, Peace & Security', '160': 'Other Social Infrastructure & Services', '210': 'Transport & Storage', '220': 'Communications', '230': 'ENERGY GENERATION AND SUPPLY', '231': 'Energy Policy', '232': 'Energy generation, renewable sources', '233': 'Energy generation, non-renewable sources', '234': 'Hybrid energy plants', '235': 'Nuclear energy plants', '236': 'Energy distribution', '240': 'Banking & Financial Services', '250': 'Business & Other Services', '311': 'Agriculture', '312': 'Forestry', '313': 'Fishing', '321': 'Industry', '322': 'Mineral Resources & Mining', '323': 'Construction', '331': 'Trade Policies & Regulations', '332': 'Tourism', '410': 'General Environment Protection', '430': 'Other Multisector', '510': 'General Budget Support', '520': 'Development Food Assistance', '530': 'Other Commodity Assistance', '600': 'Action Relating to Debt', '720': 'Emergency Response', '730': 'Reconstruction Relief & Rehabilitation', '740': 'Disaster Prevention & Preparedness', '910': 'Administrative Costs of Donors', '920': 'SUPPORT TO NON- GOVERNMENTAL ORGANISATIONS (NGOs)', '930': 'Refugees in Donor Countries', '998': 'Unallocated / Unspecified'}