LOOKUP_SEP moved in django 1.5, so to support 1.4 you need to do something like this:

```
if django.VERSION >= (1, 5):
    from django.db.models.constants import LOOKUP_SEP
else:
    from django.db.models.sql.constants import LOOKUP_SEP
```