From 8a995cc193ba08b875eb4ef832e00e7e0d77dfda Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 19 Sep 2019 14:36:14 +1000 Subject: [PATCH] Ability to edit username --- InvenTree/InvenTree/forms.py | 1 + InvenTree/templates/InvenTree/settings/user.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index c186ff8589..f0dd5f3d43 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -43,6 +43,7 @@ class EditUserForm(HelperForm): class Meta: model = User fields = [ + 'username', 'first_name', 'last_name', 'email' diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index cea588467b..7dcef2bc90 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -19,6 +19,10 @@ + + + +
Username{{ user.username }}
First Name {{ user.first_name }}