diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-10-31 21:35:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-31 21:35:30 +0000 |
commit | 9637b5d05d4f60dc5f93380eee6d9793ce49ceaa (patch) | |
tree | 0632232a07db4b108d5d53ffc45f9c4c71a179a4 /src/workflow | |
parent | d8add6acda393e5d1669412185550ceb33128f8f (diff) | |
parent | 9279907efbb91b982e93242a68cab6f67a845b2b (diff) |
Merge "Improved Collaborators UX"
Diffstat (limited to 'src/workflow')
-rw-r--r-- | src/workflow/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/workflow/forms.py b/src/workflow/forms.py index c770e38..d4abbc3 100644 --- a/src/workflow/forms.py +++ b/src/workflow/forms.py @@ -189,6 +189,7 @@ class BookingMetaForm(forms.Form): default_user = kwargs.pop("default_user") else: default_user = "you" + self.default_user = default_user if "chosen_users" in kwargs: chosen_users = kwargs.pop("chosen_users") elif data and "users" in data: @@ -212,7 +213,7 @@ class BookingMetaForm(forms.Form): """ try: users = {} - d_qset = UserProfile.objects.select_related('user').all(); + d_qset = UserProfile.objects.select_related('user').all().exclude(user__username=self.default_user); for userprofile in d_qset: user = { 'id':userprofile.user.id, @@ -237,7 +238,6 @@ class BookingMetaForm(forms.Form): 'selectable_limit': -1, 'name': "users", 'placeholder': "username", - 'default_entry': default_user, 'initial': chosen_users, 'edit': False } |