areski / django-admin-tools-stats

Django-admin-tools-stats is a Django admin module that allow you to create easily charts on your dashboard based on specific models and criterias
http://django-admin-tools-stats.readthedocs.org/
Other
291 stars 74 forks source link

Dynamic criteria doesn't respect lookup data types #54

Open PetrDlouhy opened 5 years ago

PetrDlouhy commented 5 years ago

It is not possible to set datatypes of the dynamic criteria lookup values. So lookups with keys like __isnull or IDs aren't working very well.

I think, that the dynamic criteria aren't very well designed. I was trying to experiment with behaviour similar to how list_filters are working in django-admin (at least if the criteria values list is blank), but I didn't figure it out yet.