akvo.rest.views.utils module

akvo.rest.views.utils.create_invited_user(email)[source]
akvo.rest.views.utils.get_cached_data(request, key_prefix, data, serializer)[source]

Function to get serialized data from the cache based on the request.

akvo.rest.views.utils.get_qs_elements_for_page(qs, request, count)[source]

Return queryset elements to be shown on the current page

akvo.rest.views.utils.int_or_none(value)[source]

Return int or None given a value.

akvo.rest.views.utils.set_cached_data(request, key_prefix, data)[source]

Function to save data to the cache based on the request.