Leaklens

django__django-12284

Model.get_FOO_display() does not work correctly with inherited choices.

Verdict: disputed: one of the two checks found quoted evidence (not counted as a flag).

The line if not hasattr(cls, 'get_%s_display' % self.name) breaks the expected behaviour on model inheritance, which causing this bug.

Disputed: one of the two checks found a pointer to the fix, the other found nothing. Not counted as a flag; the quote is on the task page.

All SWE-bench Lite tasks · more django/django tasks · How the check works