wtforms-sqlalchemy icon indicating copy to clipboard operation
wtforms-sqlalchemy copied to clipboard

WTForms integration for SQLAlchemy

Results 11 wtforms-sqlalchemy issues
Sort by recently updated
recently updated
newest added

The sentinel value to detect a blank option is currently `__None`. This is unfortunately incompatible with [select2](https://github.com/select2/select2). select2 expects a blank field to have an empty value. I assume that...

If you change "__None" to "" it will be possible to use allow_blank=True and DataRequired() and the user won't be able to choose the blank value.

# ModelFieldList for one-page forms ## Problem In WTForms-SQLAlchemy, there is currently no way of modeling nested forms based on from database models. Thus, in a One to Many database...

When working with `QuerySelectMultipleField `, the empty form works ok, but when the edit form is built from an object like `form = MyForm(obj=obj)` then the multiple select field does...

# Background In the example below, assuming `parent` is a many-to-one field that maps to a `QuerySelectField`, The `query_factory`'s callable (`get_all_except_first`) will not be used, it just returns all records...

We've found that `QuerySelectMultipleField` sometimes has funny validation behaviour. When choosing a non-existing value and validating, we get that `form.validate()` returns `True`, but then validating again it returns `False`. The...

I use a wtform for both adding and editing an object and I use the queryselectfield for the foreign keys. The queryselectfield always takes the first value in the row....

Make QuerySelectField's selected works with model instance.

While switching to `wtforms-sqlalchemy` from another library I ran into an issue that we have columns with `nullable=False` and `default` value, which should be able to post, but the generated...