«
module documentation

This module defines a django_filters.FilterSet based class that allows relatively easy filtering and sorting of models. In our case, we have implemented only a PatientFilter for the views.PatientListView which almost automatically provides a form that can be passed and used in the HTML template of the list view.

By using third-party app django_filters (docs) we can define by what fields we want to filter/sort our models and how.

Class PatientFilter A django_filters.FilterSet which allows for easy filtering of a patient queryset for any fields defined here.
Function public_or_logged_in Return a queryset of datasets, depending on whether a user is logged in or not.
Variable logger Undocumented
def public_or_logged_in(request):

Return a queryset of datasets, depending on whether a user is logged in or not.

logger =

Undocumented