Hi Sencer, signals will be helpful only if you are auditing on certain models but if you are trying to audit a set of views then middleware will be a better choice since that will be more manageable
On Fri, 3 Jun 2022 at 18:29, Jason <[email protected]> wrote: > one good source when you have a question "is there anything in django that > does X?" is to go to djangopackages.org. > > https://djangopackages.org/grids/g/model-audit/, for example, is a list > of packages for model auditing and history > > On Friday, June 3, 2022 at 6:33:37 AM UTC-4 [email protected] wrote: > >> Hi, >> >> I've been planning to add audit logging to the project. >> >> But, I can not decide which approach is the best; >> Using signals or creating middleware? >> >> Project needs to being log events on change of model object with these >> informations below: >> >> - If a record is inserted, updated and deleted: >> - who is taking this action (ForeignKey) >> - what is the action (Choice) >> - which applications model object affected (ContentType) >> - affected object (Generic relation) >> - current data in json format >> - previous data in json format >> >> >> Kind regards, >> Sencer HAMARAT >> >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f5586723-4e6a-4ce6-93d9-b74cd277dc91n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f5586723-4e6a-4ce6-93d9-b74cd277dc91n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGp2JVGgoO0jdVSbWHtwPtdeXuD6PuUMxVd3p2EY_QZz6CedCA%40mail.gmail.com.

