Commit 5de88a3c authored by fred.lpo07's avatar fred.lpo07

add PersonJson to admin views

parent a65f8779
......@@ -25,13 +25,14 @@ def create_app():
admin = Admin(app, name=app.config["APP_NAME"], template_mode='bootstrap3')
from app.models import TerritoryUnit, PositionType, Person, Recipient, RecipientAdmin, PersonAdmin, ContractType, FormFields
from app.models import TerritoryUnit, PositionType, Person, Recipient, RecipientAdmin, PersonAdmin, ContractType, FormFields, PersonJson
admin.add_view(PersonAdmin(Person, db.session))
admin.add_view(ModelView(TerritoryUnit, db.session))
admin.add_view(ModelView(ContractType, db.session))
admin.add_view(ModelView(PositionType, db.session))
admin.add_view(RecipientAdmin(Recipient, db.session))
admin.add_view(RecipientAdmin(FormFields, db.session))
admin.add_view(RecipientAdmin(PersonJson, db.session))
admin.add_link(MenuLink(name='Site publique', category='', url='/'))
......
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