I have many places in my app where user (from user model) is displayed: templates, forms, fliters, tables etc. It is displayed as username everywhere.
I want it to be displayed as first_name/last_name.
I can do that with monkey patching:
@receiver(request_started)
def patch(*args, **kwargs):
get_user_model().__str__ = my_smart_str_func
I use "request_started" to make sure all models are loaded. (BTW, does there is something like "models loaded" signal?).
How ever, I feel it a little bit hacky. There should be more pythonic way to do that. Am I miss something?