From 8d26bac6f967f46465b433afe2a3f0ad4007fada Mon Sep 17 00:00:00 2001 From: d42 Date: Sat, 28 Apr 2018 21:25:08 +0200 Subject: [PATCH] username as name everywhere --- storage/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/admin.py b/storage/admin.py index 13c297a..8fb7ab5 100644 --- a/storage/admin.py +++ b/storage/admin.py @@ -76,5 +76,8 @@ admin.site.register(Category) from django.contrib.auth.models import User from django.contrib.auth.models import Group +User.add_to_class('get_short_name', User.get_username) +User.add_to_class('get_full_name', User.get_username) + admin.site.unregister(User) admin.site.unregister(Group)