flask-mongoengine icon indicating copy to clipboard operation
flask-mongoengine copied to clipboard

Add support for ObjectIdField

Open spitzbubchen opened this issue 7 years ago • 2 comments

It would be nice to express this as a hidden field.

spitzbubchen avatar Jul 22 '16 16:07 spitzbubchen

I guess this is linked to https://github.com/MongoEngine/flask-mongoengine/issues/138#issuecomment-213485871.

Can you please be more explicit?

lafrech avatar Jul 22 '16 17:07 lafrech

Maybe model_form would just render ObjectIdField as a simple StringField containing a string of the ID. One can always set field_args to customize it as a hidden field.

spitzbubchen avatar Jul 27 '16 23:07 spitzbubchen