Tuesday, June 24, 2014

Can't run tests when admin is part of INSTALLED_APPS?

If I try to run test suites in 1.7 with admin in INSTALLED_APPS, I get this...

  File "/django/core/management/commands/migrate.py", line 195, in model_installed
    (opts.auto_created and converter(opts.auto_created._meta.db_table) in tables))
AttributeError: 'bool' object has no attribute '_meta'

If I comment out the django.contrib.admin, tests work fine.

I do not know how to dig further from here. Is anyone able to point me in the right direction?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/31e83a94-6520-41a0-b881-c0806f954bde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment