Changes between Initial Version and Version 1 of Ticket #34624


Ignore:
Timestamp:
Jun 2, 2023, 6:59:58 AM (19 months ago)
Author:
Thibaud Colas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34624 – Description

    initial v1  
    1 In the Redirects contrib module, when creating a new redirect, the first field is for a Site instance. This is using a radio button (`radio_fields` ModelAdmin definition: https://github.com/django/django/blob/main/django/contrib/redirects/admin.py#L10). This uses `RelatedFieldWidgetWrapper` – which doesn’t work for radio widgets.
     1In the Redirects contrib module, when creating a new redirect, the first field is for a Site instance. This is using a radio button (`radio_fields` ModelAdmin definition: https://github.com/django/django/blob/main/django/contrib/redirects/admin.py#L10). This uses `RelatedFieldWidgetWrapper` – which doesn’t work for radio widgets. Demo:
     2
     3[[Image(https://code.djangoproject.com/raw-attachment/ticket/34624/related-links.gif)]]
    24
    35If we look at [https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js#L223-L230 RelatedObjectLookups.js], it seems clear this code was only written to support `select` widgets.
Back to Top