Update basecompiler.py

Django 1.5.4 'LOOKUP_SEP' moved from 'jango.db.models.sql.constants' to 'django.db.models.constants'