google app engine - Compatibility of ndb models with WTForms -


tech stack: ndb models, wtforms, webapp2 experimenting wtforms extension appengine db models.

i had simple db schema:

class autho(ndb.models):     name = db.stringproperty()  class notes(ndb.model):     title = db.stringproperty()     author = db.keyproperty() 

and simple form definition form wtforms, in handlers per documentation:

from wtforms.ext.appengine.db import model_form  def get(self, slug):         form = model_form(author)()         self.render_template('form.html', {'form': form}) 

this raises attribute error line 411 here props = model.properties()

please let me know, if can fixed.

i've never used wtforms, seems incompatible ndb -- "model.properties()" old db idiom. maybe wtforms author consider adding support nbd?


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -