Re: save a form

2009-08-20 Thread luca72

Thanks for you reply.
But i have this problem i need to check a value from a field before
the validation of the form.
How i can do this.
Sorry for my stupid question but i'm very newbie

On 19 Ago, 19:44, Alex Gaynor  wrote:
> On Wed, Aug 19, 2009 at 11:22 AM,luca72 wrote:
>
> > how i can get the value of the fields?
>
> > On 19 Ago, 17:45, Daniel Roseman  wrote:
> >> On Aug 19, 3:40 pm,luca72 wrote:
>
> >> > Iis but form.save don't work
>
> >> That's true.
> >> --
> >> DR.
>
> On a validated form the values will be in the dictionary form.cleaned_data
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your
> right to say it." -- Voltaire
> "The people's good is the highest law." -- Cicero
> "Code can always be simpler than you think, but never as simple as you
> want" -- Me
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: save a form

2009-08-19 Thread Alex Gaynor

On Wed, Aug 19, 2009 at 11:22 AM, luca72 wrote:
>
> how i can get the value of the fields?
>
> On 19 Ago, 17:45, Daniel Roseman  wrote:
>> On Aug 19, 3:40 pm, luca72  wrote:
>>
>> > Iis but form.save don't work
>>
>> That's true.
>> --
>> DR.
> >
>

On a validated form the values will be in the dictionary form.cleaned_data

Alex

-- 
"I disapprove of what you say, but I will defend to the death your
right to say it." -- Voltaire
"The people's good is the highest law." -- Cicero
"Code can always be simpler than you think, but never as simple as you
want" -- Me

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: save a form

2009-08-19 Thread luca72

how i can get the value of the fields?

On 19 Ago, 17:45, Daniel Roseman  wrote:
> On Aug 19, 3:40 pm, luca72  wrote:
>
> > Iis but form.save don't work
>
> That's true.
> --
> DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: save a form

2009-08-19 Thread Daniel Roseman

On Aug 19, 3:40 pm, luca72  wrote:
> Iis but form.save don't work
>

That's true.
--
DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: save a form

2009-08-19 Thread luca72

Iis but form.save don't work

On 19 Ago, 16:23, Daniel Roseman  wrote:
> On Aug 19, 3:21 pm, luca72  wrote:
>
> > Hello i have a POST form (not modelform) how i can save the data in
> > the db, and if i need to change the data before the save how i can do?
>
> > Thanks
>
> If it's not a modelform, what does it mean to save it in the database?
> It's not associated with any model, by definition.
> --
> DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: save a form

2009-08-19 Thread Daniel Roseman

On Aug 19, 3:21 pm, luca72  wrote:
> Hello i have a POST form (not modelform) how i can save the data in
> the db, and if i need to change the data before the save how i can do?
>
> Thanks

If it's not a modelform, what does it mean to save it in the database?
It's not associated with any model, by definition.
--
DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---