from flask import render_template
from flask_appbuilder import AppBuilder
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder import ModelView
from models import UserSettings

class UserSettingsView(ModelView):
    datamodel = SQLAInterface(UserSettings)
    label_columns = {'photoPath':'Photo Path'}
    # edit_columns = None
    # list_columns = None
    show_fieldsets = [
                        (
                            'User Settings',
                            {'fields':['photoPath']}
                        ),
                     ]

def register_views(appbuilder):
    appbuilder.add_view(UserSettingsView(), "User Settings", icon="fa-cog")
    # appbuilder.add_link("User Settings", "UserSettings", icon="fa-cog")


6857ea52b634500eb1bc61bb417fcb7b7d7126a2
<mask token>


class UserSettingsView(ModelView):
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class UserSettingsView(ModelView):
    datamodel = SQLAInterface(UserSettings)
    label_columns = {'photoPath': 'Photo Path'}
    show_fieldsets = [('User Settings', {'fields': ['photoPath']})]


<mask token>

<mask token>


class UserSettingsView(ModelView):
    datamodel = SQLAInterface(UserSettings)
    label_columns = {'photoPath': 'Photo Path'}
    show_fieldsets = [('User Settings', {'fields': ['photoPath']})]


def register_views(appbuilder):
    appbuilder.add_view(UserSettingsView(), 'User Settings', icon='fa-cog')

from flask import render_template
from flask_appbuilder import AppBuilder
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder import ModelView
from models import UserSettings


class UserSettingsView(ModelView):
    datamodel = SQLAInterface(UserSettings)
    label_columns = {'photoPath': 'Photo Path'}
    show_fieldsets = [('User Settings', {'fields': ['photoPath']})]


def register_views(appbuilder):
    appbuilder.add_view(UserSettingsView(), 'User Settings', icon='fa-cog')

from flask import render_template
from flask_appbuilder import AppBuilder
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder import ModelView
from models import UserSettings

class UserSettingsView(ModelView):
    datamodel = SQLAInterface(UserSettings)
    label_columns = {'photoPath':'Photo Path'}
    # edit_columns = None
    # list_columns = None
    show_fieldsets = [
                        (
                            'User Settings',
                            {'fields':['photoPath']}
                        ),
                     ]

def register_views(appbuilder):
    appbuilder.add_view(UserSettingsView(), "User Settings", icon="fa-cog")
    # appbuilder.add_link("User Settings", "UserSettings", icon="fa-cog")

