#23315: Cannot resolve operation dependencies
-------------------------------------+-------------------------------------
Reporter: gabejackson | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.7-rc-2
Severity: Release blocker | Resolution:
Keywords: migrations, | Triage Stage: Accepted
autodetector, circular dependency | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timgraham):
* status: closed => new
* resolution: fixed =>
Comment:
The new test fails on Python 3.4:
{{{
======================================================================
ERROR [0.001s]: test_circular_dependency_mixed_addcreate
(migrations.test_autodetector.AutodetectorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jenkins/workspace/django-
master/database/sqlite3/python/python3.4/tests/migrations/test_autodetector.py",
line 1099, in test_circular_dependency_mixed_addcreate
changes = autodetector._detect_changes()
File "/home/jenkins/workspace/django-
master/database/sqlite3/python/python3.4/django/db/migrations/autodetector.py",
line 172, in _detect_changes
self.generate_created_models()
File "/home/jenkins/workspace/django-
master/database/sqlite3/python/python3.4/django/db/migrations/autodetector.py",
line 497, in generate_created_models
dep_app_label = field.rel.to._meta.app_label
AttributeError: 'str' object has no attribute '_meta'
}}}
The string is `"a.person"` (but resolves to `<class 'Person'>` when the
test passes).
--
Ticket URL: <https://code.djangoproject.com/ticket/23315#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.a803f020784f9baf3d35af1298d03726%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.