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
b6206e20
Commit
b6206e20
authored
Mar 22, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes and minor changes.
parent
ee297aa3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
19 deletions
+4
-19
TODO.txt
TODO.txt
+1
-5
simple.py
examples/sqla/simple.py
+1
-1
sqlamodel.py
flask_adminex/ext/sqlamodel.py
+2
-0
test.html
flask_adminex/static/js/test.html
+0
-13
No files found.
TODO.txt
View file @
b6206e20
...
@@ -2,19 +2,15 @@
...
@@ -2,19 +2,15 @@
- Right-side menu items (auth?)
- Right-side menu items (auth?)
- Pregenerate URLs for menu
- Pregenerate URLs for menu
- Conditional js include for forms or pages
- Conditional js include for forms or pages
- More form widgets (date time, time, etc)
- Model Admin
- Model Admin
- Ability to sort by fields that are not visible?
- Ability to sort by fields that are not visible?
- SQLA Model Admin
- SQLA Model Admin
-
Use of date time widgets
-
Automatic required validator if field is not nullable
- Validation of the joins in the query
- Validation of the joins in the query
- Automatic joined load for foreign keys
- Automatic joined load for foreign keys
- Built-in filtering support
- Built-in filtering support
- Many2Many support
- Many2Many support
- Ability to override form field types
- WYSIWYG editor support
- WYSIWYG editor support
- File admin
- File admin
- Documentation
- Documentation
- Unit tests
- Unit tests
- Examples
- Authentication samples
examples/sqla/simple.py
View file @
b6206e20
...
@@ -33,7 +33,7 @@ class Post(db.Model):
...
@@ -33,7 +33,7 @@ class Post(db.Model):
text
=
db
.
Column
(
db
.
Text
)
text
=
db
.
Column
(
db
.
Text
)
date
=
db
.
Column
(
db
.
DateTime
)
date
=
db
.
Column
(
db
.
DateTime
)
user_id
=
db
.
Column
(
db
.
Integer
,
db
.
ForeignKey
(
User
.
id
))
user_id
=
db
.
Column
(
db
.
Integer
()
,
db
.
ForeignKey
(
User
.
id
))
user
=
db
.
relationship
(
User
,
backref
=
'posts'
)
user
=
db
.
relationship
(
User
,
backref
=
'posts'
)
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
...
flask_adminex/ext/sqlamodel.py
View file @
b6206e20
...
@@ -34,6 +34,8 @@ class AdminModelConverter(ModelConverter):
...
@@ -34,6 +34,8 @@ class AdminModelConverter(ModelConverter):
'default'
:
None
'default'
:
None
}
}
print
prop
,
kwargs
,
local_column
if
field_args
:
if
field_args
:
kwargs
.
update
(
field_args
)
kwargs
.
update
(
field_args
)
...
...
flask_adminex/static/js/test.html
deleted
100644 → 0
View file @
ee297aa3
<html>
<head>
<link
href=
"../bootstrap/css/bootstrap.css"
rel=
"stylesheet"
>
<link
href=
"../css/datepicker.css"
rel=
"stylesheet"
>
</head>
<body>
<form
action=
""
>
<input
data-datepicker=
"datepicker"
type=
"text"
value=
"2011-10-12"
/>
</form>
<script
src=
"http://code.jquery.com/jquery-1.7.min.js"
></script>
<script
src=
"bootstrap-datepicker.js"
></script>
</body>
</html>
\ No newline at end of file
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