douglasmiranda / django-admin-bootstrap

Responsive Theme for Django Admin With Sidebar Menu
MIT License
880 stars 235 forks source link

Bug in displaying Recent Actions #121

Closed binaryblood closed 5 years ago

binaryblood commented 6 years ago

Recent Actions contains a bug. When I add a data for a model, the recent actions is not showing the value returned from __str__() method of the model. Instead it shows like Person object(101), Employee object(121). But I see your screenshot displaying Document 1. Why is that happening? Whats the problem actually? I'm using Django 2.0.

ss

douglasmiranda commented 6 years ago

I will check this out! 👍

douglasmiranda commented 5 years ago

I've tried couldn't reproduce here. If you have this problem again, provide the code so we can reproduce. =]

merwok commented 5 years ago

I have seen this when I add objects in the admin before adding a __str__ method to the model class; new log entries after I add the method show the nice string version.

I suppose the admin log saves a string version of the object (rather than fetching the object and calling str at display time).

douglasmiranda commented 5 years ago

yep @merwok! That's exactly what happens! xD