added real names to admin user list combo
This commit is contained in:
parent
2f7b13ac00
commit
8bf6c36bcb
2 changed files with 3 additions and 5 deletions
|
|
@ -136,7 +136,7 @@ class AdminForm(forms.Form):
|
|||
def __init__(self, *args, **kwargs):
|
||||
self._request = kwargs.pop('request', None)
|
||||
self._users = kwargs.pop('users', [])
|
||||
choices = [(x, x) for x in self._users]
|
||||
choices = [x for x in self._users]
|
||||
choices.insert(0, ('', 'Select username ...'))
|
||||
super(AdminForm, self).__init__(*args, **kwargs)
|
||||
self.fields.insert(0, 'username', forms.ChoiceField(choices=choices,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue