Relative Content

Tag Archive for pythondjangodjango-admincustomizationdjango-auditlog

django-auditlog change list customization in django admin

I’ve started using django-auditlog in my project. I was able to successfully log entries for changes to my model, however I want to make a tweak on how audit log displays change list in django admin. The problem is I’ve a ForeignKey in my Task model, it does have a __str__ method defined. When I make change to stage field on my Task model, the entry is logged, but it shows the stage id instead of stage.name as per defined in __str__ (i believe this is how it’s supposed to work.