- 22 Aug, 2013 1 commit
-
-
lanybass authored
make upload path auto fix pic save incomplete fix 'thumb image return none error' remove an extra 'return' token fix dynamic gif thumb error
-
- 20 Aug, 2013 2 commits
-
-
Serge S. Koval authored
bugfix: inline form 'new' template - now submits all added fields correc...
-
Roey Berman authored
-
- 17 Aug, 2013 3 commits
-
-
Serge S. Koval authored
Fix "NoneType" has no attr 'get' on subdocumments
-
Bruno Rocha authored
in this line https://github.com/mrjoes/flask-admin/blob/master/flask_admin/contrib/mongoengine/form.py#L44 None causes "NoneType" has no attr 'get'
-
Bruno Rocha authored
-
- 14 Aug, 2013 9 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 13 Aug, 2013 4 commits
-
-
Serge S. Koval authored
Fix example in column_type_formatters docstring
-
Serge S. Koval authored
process inherited primary keys correctly
-
Jan Runge authored
-
Florian Sachs authored
Two new functions on `contrib.sql.tools`: - `is_inherited_primary_key(prop)` : Returns True if the `ColumnProperty` **prop** is an inherited primary key. Occuring Exceptions are not handled but raised. *Should* work with arbitrary levels of inheritance. - `get_column_for_current_model(prop)` : Return the `Column` that belongs to the model of the `ColumnProperty` **prop**. So if the ColumnProperty is for the parent, the Column for the parent ist returned. If the ColumnProperty if for the Child, the Column for the child is returned. Works with arbitrary levels of inheritance. `AdminModelConverter.convert()` and `ModelView.scaffold_list_columns()` are adapted to use the new functions.
-
- 12 Aug, 2013 1 commit
-
-
Florian Sachs authored
When using joined table inheritance (http://docs.sqlalchemy.org/en/latest/orm/inheritance.html), it is common practice to name the pk-property the same like the pk-property of the parent. The child-property ist a pk itself and has a foreign-key relationship to the pk-property of the parent. Example: class BaseWahl(Model): __tablename__ = 'basewahlen' id = Column(Integer, primary_key=True, autoincrement=True) discriminator = db.Column(db.String(50)) __mapper_args__ = { 'polymorphic_identity':'basewahl', 'polymorphic_on': discriminator } class Wahl(BaseWahl): __tablename__ = 'wahlen' id = Column(Integer, ForeignKey('basewahlen.id'), primary_key=True) __mapper_args__ = { 'polymorphic_identity':'wahl', } `AdminModelConverter.convert()` does not allow Properties with multiple columns, but will raise a `TypeError`. I changed it into the following way: - If - more than 1 column for the property - all columns are primary keys - only *one* does not have a Foreign key - only one column corresponds to the current model - select the column, that corresponds to the current model I applied the same code to `ModelView.scaffold_list_columns()` and extended it, the primary key in this special constellation actually is *not* ignored, even if it has a foreign key property, so it can be displayed using `column_display_pk = True`. This solution actually works for me. I do not have enough insight into *Flask-Admin* and definitely even less into *sqlalchemy* to think my solution is the correct one for every situation, but it may be something to think about.
-
- 07 Aug, 2013 1 commit
-
-
Serge S. Koval authored
-
- 06 Aug, 2013 1 commit
-
-
Serge S. Koval authored
-
- 05 Aug, 2013 12 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 04 Aug, 2013 3 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-
Serge S. Koval authored
-
- 31 Jul, 2013 1 commit
-
-
Serge S. Koval authored
Fixed #273
-
- 30 Jul, 2013 2 commits
-
-
Serge S. Koval authored
-
Serge S. Koval authored
-