Re: Manipulating post data before sending?

2009-07-10 Thread killsto
Thanks, that worked. On Jul 10, 1:44 pm, Jonathan Buchanan wrote: > > I'm making a small app which is kind of like a blog. I have an Entry > > class which has "ForeignKey(User)" as one of its members. I'm using > > ModelForm to generate the form and I'm excluding

Manipulating post data before sending?

2009-07-10 Thread killsto
I'm making a small app which is kind of like a blog. I have an Entry class which has "ForeignKey(User)" as one of its members. I'm using ModelForm to generate the form and I'm excluding the User ForeignKey because it will just ask for you to pick a user from a drop-down list. Where do I tell it

Best way for making a "Poll"?

2008-11-16 Thread killsto
First of all, I know the tutorial supplies somewhat of a poll, and I've been through it. What I want to do is make an app that has one poll (or question) of the day that someone can edit from the admin interface. Each question has 4 choices. Also, there will not be user registration, just a

Re: Accessing Model field from ModelForm?

2008-11-01 Thread killsto
Thanks, that's a big help. On Nov 1, 5:14 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 1, 5:33 am, killsto <[EMAIL PROTECTED]> wrote: > > > > > I have a basic form that shows what a person entered when it is > > submitted.  However, it shows up a

Accessing Model field from ModelForm?

2008-11-01 Thread killsto
I have a basic form that shows what a person entered when it is submitted. However, it shows up as a form.CharField (textbox) instead of model.CharField. Is there a way to access the model's saved data from the Forms? Also does form_for_model (http://www.djangobook.com/en/ 1.0/chapter07/) no