Fixing issue with Django <1.7 where ALL_FIELDS constant does not exist.