diff options
| author | André Ericson <de.ericson@gmail.com> | 2014-10-04 20:47:26 -0300 |
|---|---|---|
| committer | André Ericson <de.ericson@gmail.com> | 2014-10-04 20:47:26 -0300 |
| commit | 1e5e2a470768549117ac4696ce3e8b4e51d65664 (patch) | |
| tree | 3ef4e3b818974378d435939771bb2d5495ae36aa /docs/ref | |
| parent | 8c581ff39475c1b3b25d60945cc1c73a7f8eb1be (diff) | |
Fixed #22064 -- Add check for related_name
Validates that related_name is a valid Python id or ends with a '+' and
it's not a keyword. Without a check it passed silently leading to
unpredictable problems.
Thanks Konrad Świat for the initial work.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index aa3f61117c..841c8f4c48 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -117,6 +117,8 @@ Related Fields ``<field name>``. * **fields.E305**: Field name ``<field name>`` clashes with reverse query name for ``<field name>``. +* **fields.E306**: Related name must be a valid Python identifier or end with + a ``'+'``. * **fields.E310**: None of the fields ``<field1>``, ``<field2>``, ... on model ``<model>`` have a ``unique=True`` constraint. * **fields.E311**: ``<model>`` must set ``unique=True`` because it is |
