- 13 Apr, 2014 2 commits
-
-
bryhoyt authored
Merge from central repo into bryhoyt's fork
-
Serge S. Koval authored
Properly enclose 'model' in quotes when testing p.[attr]
-
- 11 Apr, 2014 2 commits
-
-
Bryan Hoyt authored
-
Bryan Hoyt authored
This reverts commit 323405e6, reversing changes made to 41a68dde.
-
- 31 Mar, 2014 2 commits
-
-
Serge S. Koval authored
SQL alchemy Unique validator allows multiple None values
-
Greg Kempe authored
-
- 30 Mar, 2014 2 commits
-
-
Serge S. Koval authored
Fix search input margin
-
Serge S. Koval authored
Fix 'TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode''
-
- 29 Mar, 2014 2 commits
-
-
Serge S. Koval authored
Fix small typo
-
Mike authored
-
- 28 Mar, 2014 1 commit
-
-
Paul Brown authored
Before: https://www.dropbox.com/s/ppif4opa904m91k/broken_search2.png After: https://www.dropbox.com/s/bxy065pzch39bg1/broken_search.png Currently, the margin of the search input messes up the border line.
-
- 19 Mar, 2014 1 commit
-
-
Serge S. Koval authored
-
- 11 Mar, 2014 1 commit
-
-
themylogin authored
-
- 10 Mar, 2014 5 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
themylogin authored
-
- 06 Mar, 2014 6 commits
-
-
Serge S. Koval authored
Fix List.html Checkbox Width
-
Paul Brown authored
-
Paul Brown authored
-
Paul Brown authored
Merge most recent changes
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 05 Mar, 2014 3 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 27 Feb, 2014 2 commits
-
-
Serge S. Koval authored
Add index page for clicking through examples.
-
bryhoyt authored
Merge from central repo into bryhoyt's fork
-
- 26 Feb, 2014 1 commit
-
-
Petrus J.v.Rensburg authored
-
- 22 Feb, 2014 1 commit
-
-
Serge S. Koval authored
Update 'Adding a new model backend' page.
-
- 18 Feb, 2014 1 commit
-
-
Petrus J.v.Rensburg authored
-
- 15 Feb, 2014 2 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 12 Feb, 2014 4 commits
-
-
Serge S. Koval authored
File and ImageUploadField fixes
-
Phil Schleihauf authored
The issue at hand is in fact an error on import, and more specific exceptions are nicer to work with.
-
Phil Schleihauf authored
Fixes error where 'image.JPG' will be disallowed when `form.upload.FileUploadField.allowed_extensions` is set to `('jpg',)`, for example. -
Phil Schleihauf authored
This is an issue for fields whose name might be changed at any point, like any image ending in "jpeg" (which will be renamed to "jpg". That would cause the actual file to be saved to disk with ".jpeg", but be saved elsewhere as ".jpg". This example (mostly copied from the example in `examples/forms/simple.py`) shows it better than I can explain: import os from flask import Flask from flask.ext.admin import Admin, form from flask.ext.admin.contrib import sqla from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///hello.db' db = SQLAlchemy(app) os.path.isdir('static') or os.mkdir('static') class Photo(db.Model): id = db.Column(db.Integer, primary_key=True) path = db.Column(db.Unicode(128)) class PhotoView(sqla.ModelView): form_extra_fields = {'path': form.ImageUploadField('Photo', base_path='static')} admin = Admin(app, 'Photos are broken!') admin.add_view(PhotoView(Photo, db.session)) db.create_all() app.run(debug=True) ... try uploading files with `.jpeg` vs `.jpg` extensions. It's pretty broken.
-
- 03 Feb, 2014 2 commits
-
-
Serge S. Koval authored
_get_dir_url() may be called without a path
-
Matthias Urlichs authored
one positional instead of keyord parameter gettext(gettext()) => gettext()
-