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

Documentation fixes

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