FormAlchemy / formalchemy

MIT License
81 stars 29 forks source link

Add argument "force=False" to .sync() for FieldSet/Field/AttributeField #13

Closed samuelchen closed 13 years ago

samuelchen commented 13 years ago

Sorry, I am not familiar with github. Not sure why so many changes are listed here. latest 2 are my changes.

Add argument "force=False" to .sync() for FieldSet/Field/AttributeField. This argument will be used to ignore the KeyError while sync data to model. Sometimes user will generate the form with only several fields. So when sync to a new model object, KeyError will throw. This argument is used to force synchronizing even if some fields are not found in data. Default value is "False" so that it will not impact existed codes.

samuelchen commented 13 years ago

Sorry, I am not familiar with github. Not sure why so many changes are listed here. latest 2 are my changes.

samuelchen commented 13 years ago

There are some other methods need to be changed either. Close this.