def convert_DateProperty(model, prop, kwargs):
 if (prop.auto_now or prop.auto_now_add):
  return None
 kwargs.setdefault('format', '%Y-%m-%d')
 return f.DateField(**kwargs)

def convert_DateProperty ( model , prop , kwargs ) : if ( prop . auto_now or prop . auto_now_add ) : return None kwargs . setdefault ( 'format' , '%Y-%m-%d' ) return f . DateField ( ** kwargs )
returns a form field for a db .