#22087: ModelForm Meta overrides are ignored by AdminReadonlyField -------------------------------+-------------------- Reporter: bendavis78 | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- In some cases, we may want to override the label and/or help text for admin fields. This can be done on the `ModelForm`'s Meta class, or by passing the overrides to `ModelAdmin.get_form`. See documentation: [https://docs.djangoproject.com/en/dev/topics/forms/modelforms /#overriding-the-default-fields Overriding the default fields]
When a field is readonly, the `AdminReadonlyField` class ignores the form overrides. Ideally the `AdminReadonlyField` should check first for the overrides on `form._meta`, and fallback to the `label_for_field()` and `help_text_for_field()` functions. -- Ticket URL: <https://code.djangoproject.com/ticket/22087> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.29fffbd4594e4d361f5f47c21f4c9c08%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.