mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #16508 -- Made Model.__init__() aware of virtual fields.
It's no longer necessary for GenericForeignKey (and any other virtual fields) to intercept the field's values using the pre_init signal.
This commit is contained in:
parent
8a55982e70
commit
8a47ba679d
3 changed files with 9 additions and 22 deletions
|
@ -400,6 +400,9 @@ Models
|
|||
* A proxy model may now inherit multiple proxy models that share a common
|
||||
non-abstract parent class.
|
||||
|
||||
* ``Model.__init__()`` now sets values of virtual fields from its keyword
|
||||
arguments.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue