Fixed Django filtering

Related to removing the DeprecationWarning for Django's logging.