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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

'bool' object is not callable - message/fields.py in clean - Django Version: 3.0.8 - Python: 3.7.8 #148

Open
ghost opened this issue Sep 1, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 2020

Hi guys,

Thanks for this app 馃憤 that really nice.
I cloned it and I got an error when I send a new message (compose views). It works for the reply views.
Just change recipient to receiver :)

'bool' object is not callable:

if receiver_filter(r) is False:

receiver_filter = self._receiver_filter
        invalid_users = []
        if receiver_filter is not None:
            for r in users:
                if receiver_filter(r) is False:
                    users.remove(r)
                    invalid_users.append(getattr(r, get_username_field()))

        if unknown_names or invalid_users:
            raise forms.ValidationError(_(u"The following usernames are incorrect: %(users)s") % {'users': ', '.join(list(unknown_names)+invalid_users)})

Does anyone has an idea

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

No branches or pull requests

0 participants