Skip to content

Commit

Permalink
Merge 020c901 into 6cf0459
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 11, 2020
2 parents 6cf0459 + 020c901 commit cfcd1de
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions baseframe/forms/fields.py
Expand Up @@ -495,12 +495,8 @@ def __init__(self, *args, **kwargs):
)
self.separator = kwargs.pop('separator', ',')
if self.lastuser:
self.autocomplete_endpoint = self.lastuser.endpoint_url(
current_app.lastuser_config['getuser_autocomplete_endpoint']
)
self.getuser_endpoint = self.lastuser.endpoint_url(
current_app.lastuser_config['getuser_userids_endpoint']
)
self.autocomplete_endpoint = self.lastuser.autocomplete_endpoint
self.getuser_endpoint = self.lastuser.getuser_endpoint
else:
self.autocomplete_endpoint = kwargs.pop('autocomplete_endpoint')()
self.getuser_endpoint = kwargs.pop('getuser_endpoint')()
Expand All @@ -516,7 +512,7 @@ def process_formdata(self, valuelist):
# Convert strings in userids into User objects
users = []
if userids:
if self.lastuser:
if self.lastuser and not getattr(self.lastuser, 'is_master_data_source'):
usersdata = self.lastuser.getuser_by_userids(userids)
# TODO: Move all of this inside the getuser method with user=True, create=True
for userinfo in usersdata:
Expand Down

0 comments on commit cfcd1de

Please sign in to comment.