<filename>2014/03/django-rest-framework/src/demo4/filters.py
# -*- coding: utf-8 -*-
import django_filters
from .models import Book

class BookFilter(django_filters.FilterSet):
    title = django_filters.CharFilter(lookup_type='icontains')

    class Meta:
        model = Book
        fields = ['title', ]
