Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model_form: Field must be unbound, not a field class #138

Closed
Garito opened this issue May 5, 2015 · 4 comments
Closed

model_form: Field must be unbound, not a field class #138

Garito opened this issue May 5, 2015 · 4 comments
Labels
type: bug Something isn't working

Comments

@Garito
Copy link

Garito commented May 5, 2015

I'm trying to use model_form with my models but when I try to call it with the request.form it raises the Field must be unbound

Could someone point me my mistake here, please

Thanks!

@Garito
Copy link
Author

Garito commented May 5, 2015

Seems that is mandatory to specify the list of fields
If I add the only param with the list of the fields I need to render it works

Is this correct?

Thanks

@lafrech
Copy link
Member

lafrech commented Feb 23, 2016

Hard to answer without sample code. Please provide code and reopen if you are still interested.

@lafrech lafrech closed this as completed Feb 23, 2016
@spitzbubchen
Copy link

spitzbubchen commented Apr 22, 2016

I just ran across the same issue.

It seems that this occurs when model_form is used on a model containing ObjectIdField().

  class Form(db.Document):
     parent = db.ObjectIdField()

@lafrech lafrech reopened this Apr 22, 2016
@lafrech lafrech added type: bug Something isn't working missing test labels Apr 22, 2016
@lafrech lafrech added this to the Scheduled, not planned milestone Apr 22, 2016
@wojcikstefan
Copy link
Member

Will be handled in #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants