silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
721 stars 106 forks source link

List items have a second date selection widget when list_editable #9

Closed max-pfeiffer closed 6 years ago

max-pfeiffer commented 7 years ago

Using Django 1.11.5, to reproduce:

list_display = ('charfield', 'date_field') list_editable = ('date_field',) list_filter = (('date_field', DateRangeFilter),)

See Screenshot.

screen shot 2017-09-07 at 16 53 08

silentsokolov commented 7 years ago

This is due to multiple load admin/DateTimeShortcuts.js on page. I spent many hours, but did not figure out how to fix it ((

As hotfix, override _get_media in you code, and exclude admin/DateTimeShortcuts.js