Commits

Ricardo Bánffy committed 79f3ce3

auto_now and auto_now_add are named _auto_now and _auto_now_add

  • Participants
  • Parent commits 759476e

Comments (0)

Files changed (1)

wtforms/ext/appengine/ndb.py

 
 def convert_DateTimeProperty(model, prop, kwargs):
     """Returns a form field for a ``ndb.DateTimeProperty``."""
-    if prop.auto_now or prop.auto_now_add:
+    if prop._auto_now or prop._auto_now_add:
         return None
 
     return f.DateTimeField(format='%Y-%m-%d %H:%M:%S', **kwargs)