Issue with django filters by DateTime filter
<p>I have a django application with API. I created many queries something like :</p>

<pre><code>class ShellMessageFilter(django_filters.FilterSet):
    created = django_filters.DateTimeFilter(name="created",lookup_type="gte")

    class Meta:
        model = Server
        fields = ['created']


class ServersDateList(ListAPIView):
    serializer_class = ServerSerializer
    queryset = Server.objects.all()
    filter_class = ShellMessageFilter
</code></pre>

<p>Which from URL get Date stamp and filtering it. 
But for now I need to create new filter which showing servers model which was update for the last two hour.
How I can do this?</p>

<p>I'll try something like this, but filter is broken and it showing all items :</p>

<pre><code>class ShellMessageFilter2Hour(django_filters.FilterSet):

    import datetime

#    lastTwoHourDateTime = datetime.datetime.now() - datetime.timedelta(hours = 1)
#    last_update = django_filters.DateTimeFilter(name=str(lastTwoHourDateTime.strftime('%Y-%m-%d %H:%M')),lookup_type="gte")

#    last_update2 = datetime.datetime.now() - datetime.timedelta(minutes = 10)
#    last_update = last_update2.strftime('%Y-%m-%d+%H:%M')

    last_update = django_filters.DateTimeFilter("2016-04-23T15:31:50")
    created = django_filters.DateTimeFilter(name="last_update",lookup_type="gte")

    class Meta:
        model = Server
        fields = ['last_update']


class ServersDate2HourList(ListAPIView):
    serializer_class = ServerSerializer
    queryset = Server.objects.all()
    filter_class = ShellMessageFilter2Hour
</code></pre>

<p>Please help, where is my mistake?</p>