diff --git a/flask_secure_admin/base.py b/flask_secure_admin/base.py index ea4e676..b86a534 100644 --- a/flask_secure_admin/base.py +++ b/flask_secure_admin/base.py @@ -146,11 +146,11 @@ def add_layout_to_admin(self, admin, app, db, options): model = getattr(db, model_name) model = override___name___on_sqlsoup_model(model) - DerviedModelViewCls = \ + DerivedModelViewCls = \ type(f'Secure{model.__name__}View', (SecureModelView,), view_options_bag) - model_view = DerviedModelViewCls(model, db.session) + model_view = DerivedModelViewCls(model, db.session) admin.add_view(model_view) return admin