mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 12:36:23 +03:00
Backend: добавлена базовая админка
This commit is contained in:
10
backend/textsouls/admin.py
Normal file
10
backend/textsouls/admin.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Blueprint
|
||||
from flask_admin.contrib.sqla import ModelView
|
||||
|
||||
from . import admin
|
||||
from textsouls.models import db
|
||||
from textsouls.models import User
|
||||
|
||||
ts_admin = Blueprint("ts_admin", __name__)
|
||||
|
||||
admin.add_view(ModelView(User, db.session))
|
||||
Reference in New Issue
Block a user