Django ModelFormSet with Google app engine

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-03-26T20:08:36Z Indexed on 2010/03/26 20:13 UTC
Read the original article Hit count: 317

I'm using Django with google app engine. I'm using the google furnished django app engine helper project.

I'm attempting to create a Django modelformset like this:

#MyModel inherits from BaseModel    
MyFormSet = modelformset_factory(models.MyModel)

However, it's failing with this error:

'ModelOptions' object has no attribute 'fields'

Apparently modelformset_factory() is expecting MyModel to implement a 'fields' accessor.

Anybody successfully used a modelformset with GAE datastore? Or is this a fundamental incompatibility between Django and GAE?

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about django