Skip to content

Commit

Permalink
Remove obsolete Flask-Admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Mar 5, 2024
1 parent 9515f0f commit 1a279db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
19 changes: 0 additions & 19 deletions boxoffice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Any

from flask import Flask
from flask_admin import Admin
from flask_mail import Mail
from flask_migrate import Migrate
from flask_rq2 import RQ
Expand Down Expand Up @@ -46,11 +45,6 @@
User,
db,
)
from .siteadmin import ( # isort:skip
DiscountCouponModelView,
InvoiceModelView,
OrganizationModelView,
)

# --- Handle JSON quirk for Boxoffice --------------------------------------------------

Expand Down Expand Up @@ -91,16 +85,3 @@ def default(o: Any) -> Any:
app.jinja_env.policies['json.dumps_function'] = app.json.dumps

mail.init_app(app)


# This is a temporary solution for an admin interface, only
# to be used until the native admin interface is ready.
try:
admin = Admin(
app, name="Boxoffice Admin", template_mode='bootstrap3', url='/siteadmin'
)
admin.add_view(OrganizationModelView(Organization, db.session))
admin.add_view(DiscountCouponModelView(DiscountCoupon, db.session))
admin.add_view(InvoiceModelView(Invoice, db.session))
except AssertionError:
pass
47 changes: 0 additions & 47 deletions boxoffice/siteadmin.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ git+https://github.com/hasgeek/baseframe#egg=baseframe
click
git+https://github.com/hasgeek/coaster#egg=coaster
Flask
Flask-Admin
Flask-Assets
git+https://github.com/hasgeek/flask-lastuser#egg=Flask-Lastuser
Flask-Mail
Expand Down

0 comments on commit 1a279db

Please sign in to comment.