mirror of
https://github.com/django/django.git
synced 2025-07-23 13:15:32 +00:00
Fixed #26179 -- Removed null assignment check for non-nullable foreign key fields.
This commit is contained in:
parent
353aecbf8c
commit
04e13c8913
5 changed files with 32 additions and 42 deletions
|
@ -479,6 +479,14 @@ creates the possibility of a deadlock. To adapt your code in the case of RQ,
|
|||
you can `provide your own worker script <http://python-rq.org/docs/workers/>`_
|
||||
that calls ``django.setup()``.
|
||||
|
||||
Removed null assignment check for non-null foreign key fields
|
||||
-------------------------------------------------------------
|
||||
|
||||
In older versions, assigning ``None`` to a non-nullable ``ForeignKey`` or
|
||||
``OneToOneField`` raised ``ValueError('Cannot assign None: "model.field" does
|
||||
not allow null values.')``. For consistency with other model fields which don't
|
||||
have a similar check, this check is removed.
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue