akvo.rest.views.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 >.

akvo.rest.views.typeahead.rejig(queryset, serializer)[source]

Rearrange & add queryset count to the response data.

akvo.rest.views.typeahead.typeahead_organisation(request, *args, **kwargs)[source]
akvo.rest.views.typeahead.typeahead_project(request, *args, **kwargs)[source]

Return the typeaheads for projects.

Without any query parameters, it returns the info for all the projects in the current context – changes depending on whether we are on a partner site, or the RSR site.

If a published query parameter is passed, only projects that have been published are returned.

NOTE: The unauthenticated user gets information about all the projects when using this API endpoint. More permission checking will need to be added, if the amount of data being returned is changed.

akvo.rest.views.typeahead.typeahead_projectupdate(request, *args, **kwargs)[source]