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
Tutorial crashes on user create #17
Comments
The user model flask-diamond sets up does not have a name field. When the template goes to render the model's data, it throws this error. You can prevent the error by commenting out the line There is a related error in the administration facet in the create_model method of the UserView class in administration.py when you try to create the actual user. |
Hi devalbo, Thanks for your reply. I actually did the same fix myself. I just wasn't sure if this was the proper fix. Just to confirm.. And line 132 in administration.py |
Hi @marcuskelly @devalbo - thanks for reporting this! It's been fixed in |
When I click "Create" on the user page, the app crashes. This happens on both localhost and PythonAnywhere.com
Python version
2.7 (I used Python 3.5 on PythonAnywhere, same issue)
Operating system
Ubuntu 16.04.1 LTS
The error message in the browser
UndefinedError: 'flask_admin.contrib.sqla.form.UserForm object' has no attribute 'name'
The error message that is logged on the command line
UndefinedError: 'flask_admin.contrib.sqla.form.UserForm object' has no attribute 'name'
The text was updated successfully, but these errors were encountered: