python - Admin search not working for my fields - Django -


i have model encrypted field.

so fields encrypted , decrypted enter , leave database.


the problem:

within admin panel

  • ?q='item' not seem find rows

  • ?field_name='item' find them all!!


any ideas? :)

if understand question correctly have encrypt search term fit entries in database. fail standard admin functionality, since fields specified search fields handled in same fashion. have create own changelist class , override get_query_set method, can handle field in special way!


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -