Skip to content

Error when trying to create a new User (tutorial-planets) #23

Description

Hi. This is my first try with Flask-Diamond. After setting up (following the tutorial) while testing, I get the following error message when accessing the page Admin -> User -> Create tab:

jinja2.exceptions.UndefinedError
UndefinedError: 'flask_admin.contrib.sqla.form.UserForm object' has no attribute 'name'.

I've relatively new in python (1+year) and flask (almost the same period :) ). Any help will be greatly appreciated.

I'm using:
Python 2.7
my requirements.txt (for planets virtual-env) are as follow:
alabaster==0.7.7
alembic==0.7.4
amqp==2.1.4
aniso8601==1.2.1
argh==0.26.2
asn1crypto==0.22.0
astroid==1.5.3
backports.functools-lru-cache==1.4
backports.shutil-get-terminal-size==1.0.0
bcrypt==3.1.3
billiard==3.5.0.2
blinker==1.4
celery==4.0.2
cffi==1.10.0
click==6.6
cryptography==1.9
decorator==4.0.11
docutils==0.13.1
enum34==1.1.6
Fabric3==1.13.1.post1
Flask==0.11.1
Flask-Admin==1.1.0
Flask-Assets==0.10
Flask-Celery-Helper==1.1.0
Flask-DbShell==1.0
Flask-DebugToolbar==0.9.2
Flask-Diamond==0.5.1
Flask-Login==0.3.2
Flask-Mail==0.9.1
Flask-Markdown==0.3
flask-marshmallow==0.5.0
Flask-Migrate==1.3.0
Flask-Principal==0.4.0
Flask-RESTful==0.3.2
Flask-Script==2.0.5
Flask-Security==1.7.5
Flask-SQLAlchemy==2.0
Flask-Testing==0.4.2
Flask-WTF==0.13.1
future==0.15.2
gitdb==0.6.4
GitPython==1.0.1
gunicorn==19.3.0
idna==2.5
ipaddress==1.0.18
ipython==5.4.1
ipython-genutils==0.2.0
itsdangerous==0.24
Jinja2==2.8
kombu==4.0.2
lazy-object-proxy==1.3.1
logilab-common==1.4.0
Mako==1.0.6
Markdown==2.6.8
MarkupSafe==1.0
marshmallow==1.2.6
mr.bob==0.1.1
nose==1.3.4
paramiko==2.2.1
passlib==1.7.1
pathlib2==2.3.0
pathtools==0.1.2
pexpect==4.2.1
pickleshare==0.7.4
prompt-toolkit==1.0.14
ptyprocess==0.5.2
pyasn1==0.2.3
pycparser==2.17
Pygments==2.2.0
pylint==1.4.1
PyNaCl==1.1.2
python-dateutil==2.6.0
pytz==2017.2
PyYAML==3.12
scandir==1.5
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.10.0
smmap==0.9.0
Sphinx==1.2.3
SQLAlchemy==1.1.11
traitlets==4.3.2
vine==1.1.3
watchdog==0.8.3
wcwidth==0.1.7
webassets==0.12.1
Werkzeug==0.11.11
wrapt==1.10.10
WTForms==1.0.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions