Fixed #30931 -- Restored ability to override Model.get_FIELD_display().

Thanks Sergey Fedoseev for the implementation idea.

Regression in a68ea23101.
This commit is contained in:
Carlton Gibson 2019-10-31 11:34:56 +01:00 committed by Mariusz Felisiak
parent 8463390527
commit 2d38eb0ab9
3 changed files with 19 additions and 2 deletions

View file

@ -21,3 +21,6 @@ Bugfixes
* Fixed migrations crash on PostgreSQL when adding an
:class:`~django.db.models.Index` with fields ordering and
:attr:`~.Index.opclasses` (:ticket:`30903`).
* Restored the ability to override
:meth:`~django.db.models.Model.get_FOO_display` (:ticket:`30931`).