Initial commit
This commit is contained in:
@@ -27,6 +27,15 @@ class BaseUserForm(forms.ModelForm):
|
||||
"region",
|
||||
"warehouse",
|
||||
]
|
||||
labels = {
|
||||
"phone": "Telefon raqami",
|
||||
"password": "Parol",
|
||||
"role": "Lavozim",
|
||||
"first_name": "Ism",
|
||||
"last_name": "Familiya",
|
||||
"region": "Hudud",
|
||||
"warehouse": "Ombor",
|
||||
}
|
||||
|
||||
def clean_role(self):
|
||||
role = self.cleaned_data["role"]
|
||||
|
||||
Reference in New Issue
Block a user