AttributeError: 'User' object has no attribute 'csrf_token'
See original GitHub issueWhen i click on the Edit user button I got a error.
This is the content of this error: Sorry, something went wrong 500 - Internal Server Error Stacktrace
Traceback (most recent call last):
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask-0.12-py2.7.egg/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask-0.12-py2.7.egg/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask-0.12-py2.7.egg/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask-0.12-py2.7.egg/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask-0.12-py2.7.egg/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask_AppBuilder-1.8.1-py2.7.egg/flask_appbuilder/security/decorators.py", line 26, in wraps
return f(self, *args, **kwargs)
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask_AppBuilder-1.8.1-py2.7.egg/flask_appbuilder/views.py", line 59, in this_form_get
self.form_get(form)
File "/home/michal/Pobrane/superset/env/lib/python2.7/site-packages/Flask_AppBuilder-1.8.1-py2.7.egg/flask_appbuilder/security/views.py", line 102, in form_get
form_field.data = getattr(item, key)
AttributeError: 'User' object has no attribute 'csrf_token'
All other features work good. My version of superset is 0.15.4.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
AttributeError: 'User' object has no attribute 'csrf_token' #2232
When i click on the Edit user button I got a error. ... AttributeError: 'User' object has no attribute 'csrf_token' #2232.
Read more >Django AttributeError at /accounts/profile/ 'User' object has no ...
Hello i get the following error when i tried to add form to update description of the user profile. My models ...
Read more >Django 3 'User' object has no attribute 'admin' - Reddit
- My goal is to add settings option for Merchant(in the code Admin or AdminUser) accounts in the marketplace, because in the original...
Read more >Django - AttributeError - 'User' object has no attribute 'validate'
Coding example for the question Django - AttributeError - 'User' object has no attribute 'validate'-django.
Read more >Testing - Django REST framework
This means that setting attributes directly on the request object may not always have the effect you expect. For example, setting .token directly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have merge rights on that repo, will review. I can’t push a release though as I don’t have rights on Pypi for that package and the unit tests are broken at the moment which is a blocker.
It would be nice if FAB was more actively maintained. It’s hard for me to take on a 3rd project…
@mistercrunch, sent a PR which fixed CI on FAB, with few tests ignored.
https://github.com/dpgaspar/Flask-AppBuilder/pull/458 https://travis-ci.org/dpgaspar/Flask-AppBuilder/builds/229645773