Skip to content

Commit ebde1fc

Browse files
author
eshaan7
committed
exluding password field
1 parent 50eba72 commit ebde1fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FlaskRTBCTF/admin/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
class MyModelView(ModelView):
88

9+
column_exclude_list = ( 'password' )
10+
911
def is_accessible(self):
1012
if not current_user.is_authenticated or not current_user.isAdmin:
1113
# permission denied

0 commit comments

Comments
 (0)