Opened 6 years ago

Last modified 6 years ago

#30280 closed Bug

_get_FIELD_display returns proxies in 2.2rc1 but always returned strings previously — at Initial Version

Reported by: Matthias Kestenholz Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm not sure whether that was wanted but https://github.com/django/django/commit/cc79c7ee637e65c8da27e56d746c87903d5ec901 (see https://code.djangoproject.com/ticket/27795 ) introduced a change where code which calls get_*_display got a string previously and now gets a proxy under some circumstances.

If this isn't wanted (and I cannot find anything in the release notes saying that it is) then that's a regression which should be fixed before releasing Django 2.2.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top