We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment:
Name: Flask-Authorize Version: 0.2.6 Name: Flask-Authorize Version: 0.2.6 Name: Flask Version: 2.1.2 Name: Flask-SQLAlchemy Version: 2.5.1 Name: six Version: 1.16.0 Name: SQLAlchemy Version: 1.4.37 Python version: Python 3.8.10
I tried to create Group by using usual way like:
group_admin = Group(name='admin') group_admin.set_restrictions(can_delete=True) db.session.add(group_admin) db.session.commit()
but i got following error:
restrictions = self.restrictions.copy() AttributeError: 'NoneType' object has no attribute 'copy'
i think here you are trying to copy restriction variable.. i updated it to __restrictions__ --> restrictions in mixins.py file and it worked fine.
__restrictions__ --> restrictions
mixins.py
Please guide if this behavior is right.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment:
I tried to create Group by using usual way like:
but i got following error:
i think here you are trying to copy restriction variable.. i updated it to
__restrictions__ --> restrictions
inmixins.py
file and it worked fine.Please guide if this behavior is right.
The text was updated successfully, but these errors were encountered: