Re: django forms validation with choice and m2m fields
Thank you very much Alex! On Apr 23, 9:28 pm, Alex Gaynorwrote: > On Fri, Apr 24, 2009 at 12:25 AM, Timboy wrote: > > > Does this data get checked to make sure that it is what was on the > > form? > > > If I have a list of choices 1,2,3 and someone modifies the form to add > > a # 4 and chooses that will django forms catch it or do I need to make > > sure on every one of my fields that the entered value is what was in > > the list? > > > TIA > > Yes, if someone submits data that isn't a valid choice Django forms will > validate and reject it. > > 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 --~--~-~--~~~---~--~~ 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: django forms validation with choice and m2m fields
On Fri, Apr 24, 2009 at 12:25 AM, Timboywrote: > > Does this data get checked to make sure that it is what was on the > form? > > If I have a list of choices 1,2,3 and someone modifies the form to add > a # 4 and chooses that will django forms catch it or do I need to make > sure on every one of my fields that the entered value is what was in > the list? > > TIA > > > Yes, if someone submits data that isn't a valid choice Django forms will validate and reject it. 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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
django forms validation with choice and m2m fields
Does this data get checked to make sure that it is what was on the form? If I have a list of choices 1,2,3 and someone modifies the form to add a # 4 and chooses that will django forms catch it or do I need to make sure on every one of my fields that the entered value is what was in the list? TIA --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---