Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
74a4c616
Commit
74a4c616
authored
Apr 24, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation fixes
parent
ee784fad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
45 deletions
+6
-45
api.rst
doc/api.rst
+2
-2
mod_ext_fileadmin.rst
doc/mod_ext_fileadmin.rst
+0
-21
mod_ext_sqlamodel.rst
doc/mod_ext_sqlamodel.rst
+0
-18
model_guidelines.rst
doc/model_guidelines.rst
+4
-4
No files found.
doc/api.rst
View file @
74a4c616
...
@@ -9,5 +9,5 @@ API
...
@@ -9,5 +9,5 @@ API
mod_form
mod_form
mod_tools
mod_tools
mod_
ext
_sqlamodel
mod_
contrib
_sqlamodel
mod_
ext
_fileadmin
mod_
contrib
_fileadmin
doc/mod_ext_fileadmin.rst
deleted
100644 → 0
View file @
ee784fad
``flask.ext.admin.contrib.fileadmin``
=====================================
.. automodule:: flask.ext.admin.contrib.fileadmin
.. autoclass:: FileAdmin
:members:
:exclude-members: can_upload, can_delete, can_delete_dirs, can_mkdir, can_rename,
allowed_extensions, list_template, upload_template, mkdir_template,
rename_template
.. autoattribute:: can_upload
.. autoattribute:: can_delete
.. autoattribute:: can_delete_dirs
.. autoattribute:: can_mkdir
.. autoattribute:: can_rename
.. autoattribute:: allowed_extensions
.. autoattribute:: list_template
.. autoattribute:: upload_template
.. autoattribute:: mkdir_template
.. autoattribute:: rename_template
doc/mod_ext_sqlamodel.rst
deleted
100644 → 0
View file @
ee784fad
``flask.ext.admin.contrib.sqlamodel``
=====================================
.. automodule:: flask.ext.admin.contrib.sqlamodel
.. autoclass:: ModelView
:members:
:inherited-members:
:exclude-members: hide_backrefs, auto_select_related, list_select_related,
searchable_columns, filter_converter
Class inherits configuration options from :class:`~flask.ext.admin.model.BaseModelView` and they're not displayed here.
.. autoattribute:: hide_backrefs
.. autoattribute:: auto_select_related
.. autoattribute:: list_select_related
.. autoattribute:: searchable_columns
.. autoattribute:: filter_converter
doc/model_guidelines.rst
View file @
74a4c616
...
@@ -24,14 +24,14 @@ Steps to add new model backend:
...
@@ -24,14 +24,14 @@ Steps to add new model backend:
By default, all model views accept model class and it
By default, all model views accept model class and it
will be stored as ``self.model``.
will be stored as ``self.model``.
2. Implement following scaffolding methods:
:
2. Implement following scaffolding methods:
- :meth:`~flask.ext.admin.model.BaseModelView.get_pk_value`
- :meth:`~flask.ext.admin.model.BaseModelView.get_pk_value`
This method will return primary key value from
This method will return primary key value from
the model. For example, in SQLAlchemy backend,
the model. For example, in SQLAlchemy backend,
it gets primary key from the model
(:meth:`~flask.ext.admin.contrib.sqla.ModelView.scaffold_pk)
, caches it
it gets primary key from the model
using :meth:`~flask.ext.admin.contrib.sqlamodel.ModelView.scaffold_pk`
, caches it
and returns actual value from the model
from ``get_pk_value``
when requested.
and returns actual value from the model when requested.
For example::
For example::
...
@@ -103,7 +103,7 @@ Steps to add new model backend:
...
@@ -103,7 +103,7 @@ Steps to add new model backend:
filtering logic for this filter type.
filtering logic for this filter type.
Lets take SQLAlchemy model backend as an example.
Lets take SQLAlchemy model backend as an example.
All SQLAlchemy filters derive from :class:`~flask.ext.admin.contrib.sqla.filters.BaseSQLAFilter` class.
All SQLAlchemy filters derive from :class:`~flask.ext.admin.contrib.sqla
model
.filters.BaseSQLAFilter` class.
Each filter implements one simple filter SQL operation
Each filter implements one simple filter SQL operation
(like, not like, greater, etc) and accepts column as
(like, not like, greater, etc) and accepts column as
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment