The way the query is constructed in admin.changelist to filter according 
the search parameters is very basic. There is no assumptions and no 
verifications done on the fields, it is just a string naively constructed 
from ModelAdmin.search_fields.
I am using it to allow one to search by date in a related model (since 
ModelAdmin.date_hierarchy does not accept a date field in a related) but 
the date format must be YY-MM-DD whatever is your localization, which is 
too bad.

Is it something that may be considered as a bug ?

Cheers.


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/gg5xTivAlu4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to