Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting usermodel and lastuser for userselectfield #234

Merged
merged 2 commits into from Jun 27, 2019

Conversation

iambibhas
Copy link
Contributor

Fixes #199.

@iambibhas iambibhas requested a review from jace June 25, 2019 16:28
baseframe/forms/fields.py Outdated Show resolved Hide resolved
baseframe/forms/fields.py Outdated Show resolved Hide resolved
@@ -412,7 +411,6 @@ def process_formdata(self, valuelist):
else:
users = self.usermodel.all(userids=userids)
self.data = users
return retval
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally not safe to make API assumptions. __init__ explicitly does not return anything. Does WTForms explicitly say this method does not return anything? If not, don't discard the return value.

@iambibhas iambibhas merged commit 294b0f8 into master Jun 27, 2019
@iambibhas iambibhas deleted the detect-usermodel branch June 27, 2019 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto detect lastuser and usermodel when using UserSelectMultiField
2 participants