1
0
Fork 0

username as name everywhere

This commit is contained in:
d42 2018-04-28 21:25:08 +02:00
parent 3ae860dbce
commit 8d26bac6f9
1 changed files with 3 additions and 0 deletions

View File

@ -76,5 +76,8 @@ admin.site.register(Category)
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.contrib.auth.models import Group 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(User)
admin.site.unregister(Group) admin.site.unregister(Group)