summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord42 <d42@users.noreply.github.com>2018-04-28 21:25:08 +0200
committerd42 <d42@users.noreply.github.com>2018-04-28 21:25:08 +0200
commit8d26bac6f967f46465b433afe2a3f0ad4007fada (patch)
tree54f70262e714e47849c5068f41f8ae154960f0d6
parent3ae860dbcef967813419949a3c80c7abd4d71a54 (diff)
downloadspejstore-8d26bac6f967f46465b433afe2a3f0ad4007fada.tar.gz
spejstore-8d26bac6f967f46465b433afe2a3f0ad4007fada.tar.bz2
spejstore-8d26bac6f967f46465b433afe2a3f0ad4007fada.zip
username as name everywhere
-rw-r--r--storage/admin.py3
1 files changed, 3 insertions, 0 deletions
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)