Hey!

Goal: To create a question field where a user can come and create a
mad-libs style question and then have others vote yes or no. (e.g.
"Would you fool around with ____(text input)______ if _____(text
input)_______ and _____(text input)______ were not together?)

I am using Google App Engine and Django forms and I have created the
form to store the question

from django import newforms as forms
import models
from google.appengine.ext.db import djangoforms

class PollForm(djangoforms.ModelForm):
    class Meta:
        model = models.Poll


from google.appengine.ext import db
from django import newforms as forms

class Poll(db.Model):
    question = db.StringProperty()
    created_on = db.DateTimeProperty(auto_now_add = 1)
    created_by = db.UserProperty()

    def __str__(self):
        return '%s' %self.question

    def get_absolute_url(self):
        return '/poll/%s/' % self.key()

Yet it is only taking one input. Is there a way to change this in the
django form or should I just hard code it into the HTML and then point
to that?

I thank anyone who takes the time to look over this question!

-Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to