mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #17648 -- Add for_concrete_model to GenericForeignKey.
Allows a `GenericForeignKey` to reference proxy models. The default for `for_concrete_model` is `True` to keep backwards compatibility. Also added the analog `for_concrete_model` kwarg to `generic_inlineformset_factory` to provide an API at the form level.
This commit is contained in:
committed by
Simon Charette
parent
8dda8a5ecc
commit
48424adaba
@@ -261,6 +261,11 @@ Minor features
|
||||
* :class:`~django.views.generic.base.View` and
|
||||
:class:`~django.views.generic.base.RedirectView` now support HTTP PATCH method.
|
||||
|
||||
* :class:`GenericForeignKey <django.contrib.contenttypes.generic.GenericForeignKey>`
|
||||
now takes an optional ``for_concrete_model`` argument, which when set to
|
||||
``False`` allows the field to reference proxy models. The default is ``True``
|
||||
to retain the old behavior.
|
||||
|
||||
Backwards incompatible changes in 1.6
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user