#!/usr/bin/python
# -*- coding: utf-8 -*-

from django_filters import NumberFilter, DateFilter
from rest_framework import filters

from . import models

class IsUserFilter(filters.BaseFilterBackend):

    def filter_queryset(self, request, queryset, view):
        return queryset.filter(user=request.user)

class MovieFilter(filters.FilterSet):
    min_runtime = NumberFilter(name='runtime', lookup_expr='gte')
    max_runtime = NumberFilter(name='runtime', lookup_expr='lte')
    min_released = DateFilter(name='released', lookup_expr='gte')
    max_released = DateFilter(name='released', lookup_expr='lte')

    class Meta:
        model = models.Movie
        fields = (
            'title',
            'genres',
            'runtime',
            'released',
        )

@@ -146,16 +146,17 @@
 models%0A%0A
+%0A
 class Is
@@ -302,16 +302,17 @@
 .user)%0A%0A
+%0A
 class Mo
@@ -668,17 +668,17 @@
 ields = 
-(
+%7B
 %0A       
@@ -689,16 +689,40 @@
  'title'
+: %5B'exact', 'icontains'%5D
 ,%0A      
@@ -735,16 +735,27 @@
 'genres'
+: %5B'exact'%5D
 ,%0A      
@@ -769,16 +769,39 @@
 runtime'
+: %5B'exact', 'gt', 'lt'%5D
 ,%0A      
@@ -816,16 +816,39 @@
 eleased'
+: %5B'exact', 'gt', 'lt'%5D
 ,%0A      
@@ -849,10 +849,10 @@
         
-)
+%7D
 %0A

Add better movie filters.