yeah, but in django 1.5 LOOKUP_SEP is in the https://github.com/django/django/blob/1.5/django/db/models/constants.py
maybe I am wrong with the order of try\except expressions
but now it's trying to find LOOKUP_SEP where it is in Django 1.5, if it's not there: taking from Django 1.4 path.