Skip to content

Commit

Permalink
Fix quickstart for flask-sqlalchemy-lite
Browse files Browse the repository at this point in the history
close #1046
  • Loading branch information
jwag956 committed Dec 27, 2024
1 parent 0e1a630 commit 7af4b43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ pure sqlalchemy (unlike Flask-SQLAlchemy).
import os
from sqlalchemy.orm import DeclarativeBase
from flask import Flask, render_template_string
from flask_sqlalchemy_lite import SQLAlchemy
from flask_security import Security, SQLAlchemyUserDatastore, auth_required, hash_password
from flask_security import Security, FSQLALiteUserDatastore, auth_required, hash_password
from flask_security.models import sqla as sqla
# Create app
Expand Down Expand Up @@ -194,11 +195,11 @@ pure sqlalchemy (unlike Flask-SQLAlchemy).
sqla.FsModels.set_db_info(base_model=Model)
class Role(Model, sqla.FsRoleMixin):
__tablename__ = "Role"
__tablename__ = "role"
pass
class User(Model, sqla.FsUserMixin):
__tablename__ = "User"
__tablename__ = "user"
pass
# Setup Flask-Security
Expand Down

0 comments on commit 7af4b43

Please sign in to comment.