Hello,
I have been trying to update the user text on history of an object page.
Looking into django source code I saw get_username being called directly.
So overriding the __str__ method on User model will not update the User
value on History page.
Right now the __str__ method of an user is:
def __str__(self):
return self.get_username()
>
Can we update the object_history.html template to use __str__
representation instead of calling get_username method? It seems more
correct. What do you guys think? Or is there a reason to call get_username
directly?
Best regards,
--
Matheus (X-warrior) Bratfisch.
http://matbra.com
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/CAED0SFyUR09LpJb07FjL6o%3DqqVLMjSZ10-2_dtqabDxw8rbX4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.