username as name everywhere
This commit is contained in:
parent
3ae860dbce
commit
8d26bac6f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue