Closed hcharley closed 7 years ago
Pretty sure this is happening on admin of a model with a ForeignKeyField
, so it's a problem on RawDataFile
, FilerToFilerTypeCd
and FilerTypePeriodsCd
as well.
All of our admins inherit from BaseAdmin
, where we've defined a method to make all fields on a given model searchable. For now, I am going to exclude these ForeignKeyFields from being searchable.
If we need to customize any admins to allow searching on field of a related model, we can just override the .get_search_fields()
to add those specific fields. Django docs says it is possible for related lookups.
Thanks for the heads up!
Using package from pypi:
django-calaccess-raw-data==1.4.6
This is my query URL:
http://0.0.0.0:8000/admin/calaccess_raw/lobbyingchglogcd/?q=test
This is my traceback: