silentsokolov/django-admin-rangefilter

calendar icon is not displayed

qulc opened this issue · 5 comments

qulc commented

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

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

confirmed, yes it works for 2.1

I tested without cache

  • 3.6/2.0
  • 3.7/2.0
  • 3.6/2.1
  • 3.7/2.0

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

May be this is somewhat related to #21

same problem here...no solutions at all