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

Date Selection Issue #24

Closed faisalmaqsood786 closed 5 years ago

faisalmaqsood786 commented 5 years ago

The issue is when you select any date from the calendar the date is not selected see the error in the console browser

VM123:106 Uncaught TypeError: callback is not a function at HTMLAnchorElement.onClick (eval at globalEval (jquery.js:343),

silentsokolov commented 5 years ago

versions? django/django-admin-rangefilter/jquery

P.S. if you upgrade any thing please reset browser cache

faisalmaqsood786 commented 5 years ago

I am using version " django-admin-rangefilter==0.3.2 " Jquery version = "2.2.3", I try with the cache but got no luck please look into it.

On Thu, Jan 24, 2019 at 11:36 AM Dmitriy Sokolov notifications@github.com wrote:

versions? django/django-admin-rangefilter/jquery

P.S. if you upgrade any thing please reset browser cache

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/silentsokolov/django-admin-rangefilter/issues/24#issuecomment-457111552, or mute the thread https://github.com/notifications/unsubscribe-auth/AiOfYsrkX6ZWUUeSmP5wcTbgiP2d5u7Dks5vGXCBgaJpZM4aQN_F .

-- Regards,

[image: VentureDive] Faisal Ali Software Engineer PK: +923433016854

silentsokolov commented 5 years ago

The latest version does not have this error.

Please upgrade to latest version rangefilter.

If you Django < 1.8.*, you need override templates /rangefilter/templates/rangefilter/date_filter.html and /rangefilter/templates/rangefilter/date_filter_1_8.html manually.

faisalmaqsood786 commented 5 years ago

I am currently using Django 2.0.7 and still, I got this error.

On Mon, Jan 28, 2019 at 6:08 PM Dmitriy Sokolov notifications@github.com wrote:

The latest version does not have this error.

Please upgrade to latest version rangefilter.

If you Django < 1.8.*, you need override templates /rangefilter/templates/rangefilter/date_filter.html and /rangefilter/templates/rangefilter/date_filter_1_8.html manually.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/silentsokolov/django-admin-rangefilter/issues/24#issuecomment-458124507, or mute the thread https://github.com/notifications/unsubscribe-auth/AiOfYjFsk6GAbETl9D4lNn4MFTBfabrqks5vHvZpgaJpZM4aQN_F .

-- Regards,

[image: VentureDive] Faisal Ali Software Engineer PK: +923433016854

silentsokolov commented 5 years ago

Django 2.0.7 django-admin-rangefilter 0.3.10 Video: http://recordit.co/s8IbzEg5Ka

Help me reproduce the error

P.S. You uses default admin.ModelAdmin?

faisalmaqsood786 commented 5 years ago

yes I am using admin.ModelAdm

from rangefilter.filter import DateRangeFilter

class SickLeaveAdmin(admin.ModelAdmin): list_display = ('id', 'consult', 'doctor', 'consult', 'created_at') search_fields = ('doctor__email',) list_filter = (('created_at', DateRangeFilter),)

On Tue, Jan 29, 2019 at 4:02 PM Dmitriy Sokolov notifications@github.com wrote:

Django 2.0.7 django-admin-rangefilter 0.3.10 Video: http://recordit.co/s8IbzEg5Ka

Help me reproduce the error

P.S. You uses default admin.ModelAdmin?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/silentsokolov/django-admin-rangefilter/issues/24#issuecomment-458531412, or mute the thread https://github.com/notifications/unsubscribe-auth/AiOfYtzgulMFjZ-xEyRB9D26ZzHvbA8Lks5vIEZIgaJpZM4aQN_F .

-- Regards,

[image: VentureDive] Faisal Ali Software Engineer PK: +923433016854

silentsokolov commented 5 years ago

In the video above, I do not get an error, maybe you have more details?

faisalmaqsood786 commented 5 years ago

I am using this package "https://github.com/elky/django-flat-theme"

When I remove this package from my INSTALLED_APPS it works fine otherwise it through error.

On Wed, Jan 30, 2019 at 10:15 AM Faisal Maqsood < faisal.maqsood@venturedive.com> wrote:

yes I am using admin.ModelAdm

from rangefilter.filter import DateRangeFilter

class SickLeaveAdmin(admin.ModelAdmin): list_display = ('id', 'consult', 'doctor', 'consult', 'created_at') search_fields = ('doctor__email',) list_filter = (('created_at', DateRangeFilter),)

On Tue, Jan 29, 2019 at 4:02 PM Dmitriy Sokolov notifications@github.com wrote:

Django 2.0.7 django-admin-rangefilter 0.3.10 Video: http://recordit.co/s8IbzEg5Ka

Help me reproduce the error

P.S. You uses default admin.ModelAdmin?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/silentsokolov/django-admin-rangefilter/issues/24#issuecomment-458531412, or mute the thread https://github.com/notifications/unsubscribe-auth/AiOfYtzgulMFjZ-xEyRB9D26ZzHvbA8Lks5vIEZIgaJpZM4aQN_F .

-- Regards,

[image: VentureDive] Faisal Ali Software Engineer PK: +923433016854

-- Regards,

[image: VentureDive] Faisal Ali Software Engineer PK: +923433016854

silentsokolov commented 5 years ago

Sorry, django-admin-rangefilter support only default admin UI.

PR are welcome!