On 8 Feb 2009, at 10:18 , tsop wrote:
> The view:
> http://dpaste.com/118076/
>
> The template:
> http://dpaste.com/118077/
>
>
> King Regards,
> Titus
Since the forms seem pretty much disjoint, and are completely
separated on the page itself (it's not like you're mixin two django
Forms in a
You realize that you could simply do something like this to check if
'somefield' is a key in request.POST?
if 'somefield' in request.POST:
...
;-)
On Sun, Feb 8, 2009 at 10:52 AM, tsop wrote:
> Oh thanks!
> I didn't realize you could do that, it works now.
> I am using request.POST.__
Oh thanks!
I didn't realize you could do that, it works now.
I am using request.POST.__contains__(key), I think this is what you
meant. =)
Titus
On Feb 8, 4:25 am, Horst Gutmann wrote:
> You could also assign the submit buttons a name (each its own name),
> check request.POST for that name and
You could also assign the submit buttons a name (each its own name),
check request.POST for that name and then validate the respective form
:-)
-- Horst
On Sun, Feb 8, 2009 at 10:18 AM, tsop wrote:
> Hello,
> I have a small problem here, I want to display two forms on the same
> page and I need
Hello,
I have a small problem here, I want to display two forms on the same
page and I need both forms to validate/submit independently from one
another. The problem I am having is that there is no way to tell which
form is being submitted to, if they are both left empty and one submit
is clicked
5 matches
Mail list logo