How to track changes changes, deletions and creations of records on django site

42 views
Skip to first unread message

Hector Berrones

unread,
Jul 27, 2020, 11:30:12 AM7/27/20
to django...@googlegroups.com
Hi, Thanks for reading me, does anyone can advice to me about how can have record of changes, deletions and creations on a django app,
I was trying creating a field in the model to save the Current authenticated user but I have't been able to get the user ID and I would't like to make that field the ForeighKey because I am fraid that if that user is deleted i would lose all the child records.. hope somebody can give me  advice on this, Thanks in advance.

Miracle

unread,
Jul 27, 2020, 11:32:54 AM7/27/20
to django...@googlegroups.com

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFFaoUK7dxusz8DypSekM%3DdsvgSKR2oPcWkhuU5F%3DMHJr_WtxQ%40mail.gmail.com.

Hector Berrones

unread,
Jul 27, 2020, 11:47:14 AM7/27/20
to django...@googlegroups.com
Thank you Brother, I will check it out right away.

Ramez Ashraf

unread,
Jul 28, 2020, 6:45:32 AM7/28/20
to Django users
Reply all
Reply to author
Forward
0 new messages