fix django 1.4 incompatibility

Django moves LOOKUP_SEP from django.db.models.sql.constants to django.db.models.constants