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

calendar icon is not displayed #20

Closed qulc closed 6 years ago

qulc commented 6 years ago

Python3.7
Django 2.1

image

I find the reason is admin/js/calendar.js and admin/js/admin/DateTimeShortcuts.js not loading

try change always loading js, but the just working disable cache mode!

class DatetimeRangeFilter(DateTimeRangeFilter):
    def get_form(self, request):
        form_class = super().get_form(request)
        form_class.js = super().get_js()
        return form_class
silentsokolov commented 6 years ago

We do not officially support 2.1 version, you tested with 2.0?

Oxicode commented 6 years ago

confirmed, yes it works for 2.1

silentsokolov commented 6 years ago

I tested without cache

Everything is working

@qulc please, check serve you static and check calendar controls on edit page (js work on edit page?), if the error is not resolved reopen issue

silentsokolov commented 6 years ago

May be this is somewhat related to #21

VictorIsra commented 4 years ago

same problem here...no solutions at all