#27942: Admin Issue with Tables in Custom Field in Tabular Inlines
-----------------------------------------+------------------------
               Reporter:  James Pulec    |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  master
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  1              |
-----------------------------------------+------------------------
 It seems that there are issues using tabular inlines, if you're using a
 custom field that is rendered with a table.

 For example, if you have some custom field like [https://github.com
 /django-recurrence/django-recurrence] uses and try to use it in a tabular
 inline, the result will be that there is an extra add button appended
 inside the custom field widget.

 This seems to be caused by
 
https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/inlines.js#L23
 since it tries to fetch the parent by using the selector defined on by
 `this`, which simply selects ANY child table rows of the current inline
 form. It's this selector that is then later used to determine where to
 append the add buttons, and if `$parent` selector has multiple results,
 add buttons get appended to all of them.

--
Ticket URL: <https://code.djangoproject.com/ticket/27942>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.e8ca0bca38739bc0083b7414b50892d1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to