You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason why we can't use JSONField instead of TextField for object_json_repr? It would allow for querying within the json for specific logs.
I guess we probably can since django 3.1 was the first version to include universal JSON support on all supported db backends. Before that, we couldn't. Open to creating a PR?
Side question. Is there a reason why object_json_repr is stored in a list?
It's a bit un-intuitive to have to add the 0 to query the json. CRUDEvent.objects.filter(object_json_repr__0__model="app.model")
Is there any reason why we can't use
JSONField
instead ofTextField
forobject_json_repr
? It would allow for querying within the json for specific logs.https://docs.djangoproject.com/en/5.0/ref/models/fields/#jsonfield
The text was updated successfully, but these errors were encountered: