sqla example: add favicon and update requirements.txt

parent e9a9f6fa
from admin import app, db from admin import app, db
from admin.models import AVAILABLE_USER_TYPES, User, Post, Tag, Tree from admin.models import AVAILABLE_USER_TYPES, User, Post, Tag, Tree
from flask import Markup from flask import Markup, send_file
from wtforms import validators from wtforms import validators
...@@ -31,6 +31,11 @@ def index(): ...@@ -31,6 +31,11 @@ def index():
return tmp return tmp
@app.route('/favicon.ico')
def favicon():
return send_file('static/favicon.ico')
# Custom filter class # Custom filter class
class FilterLastNameBrown(BaseSQLAFilter): class FilterLastNameBrown(BaseSQLAFilter):
def apply(self, query, value, alias=None): def apply(self, query, value, alias=None):
......
...@@ -7,3 +7,7 @@ enum34; python_version < '3.0' ...@@ -7,3 +7,7 @@ enum34; python_version < '3.0'
sqlalchemy_utils sqlalchemy_utils
arrow arrow
colour colour
# note: for local development, replace 'Flask-Admin' above with a reference to
# your local copy of the repo e.g. '-e .' if you're installing this from the
# repo's root directory
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment