Skip to content

Instantly share code, notes, and snippets.

This is my recommended path for learning Haskell.

Something to keep in mind: don't sweat the stuff you don't understand immediately. Just keep moving.

Primary course

Installing Haskell

Ubuntu PPA

from rest_framework import filters
class SearchFieldFilter(filters.BaseFilterBackend):
"""Filter based on record attributes."""
def filter_queryset(self, request, queryset, view):
ALLOWED_ENDINGS = ('__exact', '__iexact', '__contains', '__icontains',
'__gt', '__gte', '__lt', '__lte', '__startswith',
'__istartswith', '__endswith', '__iendswith', '__isnull',
'__search',)