[Python-modules-team] Bug#863267: Bug#863267: Miscalculates MigrationHistory dependencies between multiple django apps - regression from 1.8

Raphael Hertzog hertzog at debian.org
Tue May 30 15:09:45 UTC 2017


Hi,

On Tue, 30 May 2017, Senthil Kumaran S wrote:
> I tested the new version ie., test2 and got a traceback as shown here -
>   File "/usr/lib/python2.7/dist-packages/django/db/migrations/state.py",
> line 249, in __init__
>     raise ValueError("\n".join(error.msg for error in errors))
> ValueError: The field lava_scheduler_app.TestJob.submit_token was
> declared with a lazy reference to 'linaro_django_xmlrpc.authtoken', but
> app 'linaro_django_xmlrpc' isn't installed.

Is that actually true? linaro_django_xmlrpc seems to be listed in
INSTALLED_APPS, no?

Do you have any idea why it would give this error?

> When combined with the attached patch for lava-server the migration
> works fine as seen here - http://paste.debian.net/952953/

Your patch is a work-around and it works without my patch, so it's
expected that it would also work with mine... but I would like a Django
fix that would not require any further change in lava.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/



More information about the Python-modules-team mailing list