Questions tagged [django-auditlog]

11 questions
4
votes
6 answers

auditlog with Django and DRF

I need to implement auditlog feature in one of my project which is using Django 1.8 and Django-Rest-Framework 3.2.2. I have extended BaseUserManager class to create user model since I had to use email as a username in my application ( if this…
1
vote
1 answer

How to manually audit log in django-auditlog

How do you manually audit log in django-auditlog? There is no example in the documentation and there is still very limited sources about this. Should the model be registered? What i am really trying to achieve is to manually log data so that i can…
1
vote
1 answer

Why use a pre-written audit package in Django

I am considering how to implement auditing my database with Django. There are lots of auditing packages and I am decided on using something that logs changes to models in the database, rather than externally, but can anybody give me reasons why I…
Davtho1983
  • 3,827
  • 8
  • 54
  • 105
1
vote
4 answers

How can I "squash" a list of dictionaries?

Apologies for an unclear title, but I'm not sure how else to describe the operation I'm trying to do. django-auditlog produces "diffs" of tracked fields in Django models of the format {'field_name': [old_value, new_value]}, that keep track of fields…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96
0
votes
0 answers

Django Audit Log

I want to show logged in user or actor id in my LogEntry Table which is displayed in admin panel. By default is is showing 5 columns Created, Resource, Action,Changes and User. I want to extend user id column in this table that is i want to include…
0
votes
0 answers

create custom audit table using django-auditlog library

So in our project we are already using auditlog library for auditing in silo project. A new requirement has came up where i have store audit of some tables in a different table than created by this library. I am not able to do so. I have tried…
0
votes
2 answers

Using django-auditlog, how can I display the 'actor_id' for a particular model?

I have created a simple Django application to display individual articles. These articles have a number of fields that users can edit. I am using the package 'django-auditlog' to log changes to these article models. So far, I have simply followed…
JasonPB
  • 11
  • 5
0
votes
2 answers

django-auditlog not working for User model

I am using django-auditlog for creating entries in LogEntry table. my actions for User Model are not getting logged in LogEntry table. my User model - class User(AbstractUser): ... ... ... username = None USERNAME_FIELD = 'id' REQUIRED_FIELDS =…
0
votes
1 answer

How to change the tz in records stored by the usage of django-auditlog in django admin panel

I am using the django-auditlog library to store audit logs concerning some of my models. I noticed that despite the fact that I have defined the time zone in settings.py all the models containing fields of type DateTimeField are stored in UTC time…
gtopal
  • 544
  • 1
  • 9
  • 35
0
votes
1 answer

What happens after Django clean method but before commit?

I am using an awesome library called Django Auditlog. It tracks what changes occurred to an object. For model Book if I changed the Author name from 'John' to 'Mary' it records the before value (John), after value (Mary), when it occurred, and what…
Liam Hanninen
  • 1,525
  • 2
  • 19
  • 37
0
votes
0 answers

missing 1 required positional argument: 'on_delete' django-audit-log

I'm trying to have logs on one of my models by using the django-audit-log package. I've installed the package using pip and added 'audit_log.middleware.UserLoggingMiddleware', to my middleware classes in my settings.py In my models.py file, I have…
Kingsley
  • 777
  • 1
  • 12
  • 35