Commit c30802d5 authored by Serge S. Koval's avatar Serge S. Koval

Documentation fixes

parent f1576a6b
......@@ -6,7 +6,7 @@ Changelog
* Peewee model backend
* Inline form administration interface for models a-la Django
* Model actions - methods that work with more than one model (for example - mass delete)
* Mass actions - methods that work with more than one item (for example - mass delete for models or files)
* SQLAlchemy form scaffolding is now independent from the wtforms.ext.sqlalchemy helpers
* Added ability to mount administrative interface as a top-level folder
* Administrative interface can now be mounted as a subdomain
......
......@@ -2,7 +2,8 @@
<body>
<form method="POST" action="">
{{ form.hidden_tag() }}
{% for f in form if f.label.text != 'Csrf' %}
{% for f in form if f.type != 'CSRFTokenField' %}
{{ f.type }}
<div>
{{ f.label }}
{{ f }}
......
......@@ -67,6 +67,11 @@ class PostAdmin(peeweemodel.ModelView):
'date',
User.username)
@admin.action('merge',
'Merge',
'Are you sure you want to merge selected models?')
def action_combine(self, ids):
pass
@app.route('/')
def index():
......
from .base import expose, Admin, BaseView, AdminIndexView
from .actions import action
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