Use datetime functions provided by Django

This is a quick hack to make it work with Django 1.7, we are using the datetime
functions provided by Django we can compare datetime objects of the same type
(timezone-aware).