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

Fixes and minor changes.

parent ee297aa3
......@@ -2,19 +2,15 @@
- Right-side menu items (auth?)
- Pregenerate URLs for menu
- Conditional js include for forms or pages
- More form widgets (date time, time, etc)
- Model Admin
- Ability to sort by fields that are not visible?
- SQLA Model Admin
- Use of date time widgets
- Automatic required validator if field is not nullable
- Validation of the joins in the query
- Automatic joined load for foreign keys
- Built-in filtering support
- Many2Many support
- Ability to override form field types
- WYSIWYG editor support
- File admin
- Documentation
- Unit tests
- Examples
- Authentication samples
......@@ -33,7 +33,7 @@ class Post(db.Model):
text = db.Column(db.Text)
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')
def __unicode__(self):
......
......@@ -34,6 +34,8 @@ class AdminModelConverter(ModelConverter):
'default': None
}
print prop, kwargs, local_column
if field_args:
kwargs.update(field_args)
......
<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
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