question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'User' object has no attribute 'csrf_token'

See original GitHub issue

When i click on the Edit user button I got a error.

alt tag

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:closed
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mistercrunchcommented, May 7, 2017

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…

0reactions
S-YOUcommented, May 7, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found