The standard approach in admin.py
by defining class:
exclude = ('some_hstore_field', )
does not work.
I manage to get expected result by specifying explicit fields
but would like rather exclude the one I don't need, than specify all the other needed.
Assuming you have in your model hstore field called
facilities
:then you CAN NOT just write:
Assuming your hstore schema looks something like that:
You have to exclude each of subfield by its name, e.g:
you can do it like this:
or like this - using meta of class field:
The same applies for
readonly_fields