How do I know which user added another user?

User A registers and is assigned admin status. User A adds User B within the application. How can I save User A in my extended user model so I know who has added who? This is a multi-tenant application. Django/Postgres


AFAIK you can utilize django_admin_log table for retrieving the related details. This won't have all the details though. In Django, check for the first answer given under Logging activity on Django's admin - Django . With this it is possible to get details of LogEntry class.

Your Answer

