Erroneous imports in admin/options module #8

Closed
ghost opened this Issue Nov 5, 2012 · 3 comments

Projects

None yet

2 participants

@ghost
ghost commented Nov 5, 2012

I found out that when trying to activate your admin 'module' in my settings.py / INSTALLED_APPS, starting the embedded server will fail.

It turned out that one of the import statements referenced the wrong module for importing the LOOKUP_SEP constant.

Changing

from django.db.models.sql.constants import LOOKUP_SEP, QUERY_TERMS

to

from django.db.models.constants import LOOKUP_SEP
from django.db.models.sql.constants import QUERY_TERMS

made it actually compile and load so far.

@rozza
Contributor
rozza commented Nov 6, 2012

What version of django are you running?

@ghost
ghost commented Mar 20, 2013

sorry for the late reply, but it is 1.5+

@last-partizan
Contributor

It works in latest version of Django. Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment