Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Peterson committed Aug 23, 2019
1 parent 5422a91 commit 757fed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_secure_admin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 757fed7

Please sign in to comment.