Skip to content

Commit

Permalink
Merge d36dc63 into c2e3704
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas committed Jun 27, 2019
2 parents c2e3704 + d36dc63 commit af7ce14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baseframe/forms/fields.py
Expand Up @@ -375,8 +375,8 @@ class UserSelectFieldBase(object):
Select a user
"""
def __init__(self, *args, **kwargs):
self.usermodel = kwargs.pop('usermodel')
self.lastuser = kwargs.pop('lastuser')
self.lastuser = kwargs.pop('lastuser', current_app.login_manager)
self.usermodel = kwargs.pop('usermodel', self.lastuser.usermanager.usermodel if self.lastuser else None)
self.separator = kwargs.pop('separator', ',')
if self.lastuser:
self.autocomplete_endpoint = self.lastuser.endpoint_url(current_app.lastuser_config['getuser_autocomplete_endpoint'])
Expand Down

0 comments on commit af7ce14

Please sign in to comment.