flake8
-
django_evolution/db/sqlite3.py (Diff revision 1) -
django_evolution/db/sqlite3.py (Diff revision 1) F401 'django_evolution.compat.models.get_remote_field' imported but unused
Review Request #10266 — Created Oct. 23, 2018 and submitted
Django 1.9 replaced
Field.rel
withField.remote_field
, along with a
handful of other attributes, as part of an effort to provide a
supported, documented API for field relations.This change adds compatibility with both the old undocumented API and
the new documented API through the addition ofget_remote_field()
and
get_remote_field_model()
functions. These are used instead of
.rel
/.rel.to
and.remote_field
/.remote_field.model
accessors.
Unit tests pass on Django 1.6 through 1.11, and 2.1 with additional
changes.
django_evolution/db/sqlite3.py (Diff revision 1) |
---|
django_evolution/db/sqlite3.py (Diff revision 1) |
---|
F401 'django_evolution.compat.models.get_remote_field' imported but unused
Removed unused imports.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+171 -64) |