1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

[3.0.x] Fixed #30931 -- Restored ability to override Model.get_FIELD_display().

Thanks Sergey Fedoseev for the implementation idea.

Regression in a68ea23101.

Backport of 2d38eb0ab9 from master
This commit is contained in:
Carlton Gibson
2019-10-31 11:34:56 +01:00
committed by Mariusz Felisiak
parent 0644b73e85
commit dd2ca8b0ea
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`).