mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Merge pull request #3308 from aericson/ticket_22064
Fixed #22064 -- Add check for related_name
This commit is contained in:
commit
6f6e7d01dc
3 changed files with 90 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue