Closed sevdog closed 2 years ago
@sevdog I just tried this on the latest version, and I am able to search without error. Is this still an issue?
@jamaalscarlett yes, it works for me too.
Just checked and was fixed in 75f78c0ada99fc76a1412c07eab7245cfaf2d609 (but the commit did not reference this issue).
Default admin class by default has
device_id
insearch_fields
:https://github.com/jazzband/django-push-notifications/blob/da97ebe8f892a28c9288982ce19713226a6e5d4b/push_notifications/admin.py#L20-L23
However
WebPushDevice
model does not define any database field this this name, it only defines a property:https://github.com/jazzband/django-push-notifications/blob/da97ebe8f892a28c9288982ce19713226a6e5d4b/push_notifications/models.py#L250-L252
This causes an interla-server-error when searching on admin
The field should be removed from search field or be added to web push table.