mirror of
https://github.com/django/django.git
synced 2024-11-24 20:07:01 +01:00
Fixed #35623 -- Documented that a field cannot be named 'check'.
This commit is contained in:
parent
d84200e4eb
commit
ca47884410
@ -720,6 +720,9 @@ Django places some restrictions on model field names:
|
||||
|
||||
#. A field name cannot end with an underscore, for similar reasons.
|
||||
|
||||
#. A field name cannot be ``check``, as this would override the check
|
||||
framework's ``Model.check()`` method.
|
||||
|
||||
These limitations can be worked around, though, because your field name doesn't
|
||||
necessarily have to match your database column name. See the
|
||||
:attr:`~Field.db_column` option.
|
||||
|
Loading…
Reference in New Issue
Block a user