django-easy-audit icon indicating copy to clipboard operation
django-easy-audit copied to clipboard

Use json fields where applicable

Open sgordon16 opened this issue 1 year ago • 4 comments

Resolves #298

sgordon16 avatar Jul 25 '24 02:07 sgordon16

How well does the code work when querying rows after the migration goes through?

jheld avatar Jul 26 '24 19:07 jheld

I'm not sure I understand your question, but you can now do a query like this for example:

CRUDEvent.objects.filter(object_json_repr__0__model="app.user", changed_fields__has_key="name")

This will give you all the records of users that had their name changed.

sgordon16 avatar Jul 26 '24 19:07 sgordon16

@jheld Just following up on this. Are there any issues with this?

sgordon16 avatar Aug 20 '24 13:08 sgordon16

Probably not. but we are in the middle of a potential issue on the latest pre-release and I'm hesitant to add more big changes like this. I think 1.3.8 series would be a good fit.

jheld avatar Aug 20 '24 20:08 jheld