Smart Field Search not being invoked in test

Feature(s) impacted

Smart Field searching with a Django backend.

Observed behavior

It appears that when creating tests for searching via smart fields, the schema does not detect them, and thus cannot perform the search query set filter. I’ve noticed that for the smart fields it seems not to update the .schema.json file when updating the “search” or “get” field of a model’s fields.

Expected behavior

I would expect the behaviour to be the same, as it is simply responding to a GET request.


Django 3.2.13
Django-forestadmin 1.3.3

HTTP GET /{model}/relationships/{other_model}?search={my_search} → returns in Unit Test but matching items when running against the actual forest UI.

Hello @lucasob,

I’ll check your issue

1 Like