My model has a date field and to fill this field out I want my users
to be able to click a calendar widget and select a date or "today".

The only way I have figured out how to do this is with my own field,
and hide the Forms' field.  But doesn't that defeat the purpose of the
Form object?

Is there an example on how to do this with Google App Engine?

Thanks for any assistance or advice!

Joe

<---------begin code------------>

# for illustrative purposes
class Registration(db.Model):
  courseName = db.StringProperty(required=True)
  startDate = db.DateProperty(required=True)

class RegistrationForm(djangoforms.ModelForm):
  class Meta:
    model = Registration

... Template...

 <form method="POST" action="/register">
                 <table> {{ RegistrationForm }} </table>
                 <input type="submit" value="Register" >
  </form>

<-------- end code------------>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to