Guest User

Account_ModelView_error

a guest
Nov 3rd, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "run.py", line 3, in <module>
  3. from pos import app
  4. File "/home/zaphod/Documents/flask/pos/pos/__init__.py", line 17, in <module>
  5. from pos import views, models
  6. File "/home/zaphod/Documents/flask/pos/pos/views.py", line 68, in <module>
  7. admin.add_view(ModelView(Account, db.session))
  8. File "/home/zaphod/Documents/myProject/venv/local/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py", line 277, in __init__
  9. raise Exception('Model %s does not have primary key.' % self.model.__name__)
  10. Exception: Model Account does not have primary key.
Advertisement
Add Comment
Please, Sign In to add comment