On Thu, Aug 27, 2009 at 1:41 PM, David Zhou<da...@nodnod.net> wrote: > > On Thu, Aug 27, 2009 at 7:33 AM, Maksymus007<maksymus...@gmail.com> wrote: >> >> On Thu, Aug 27, 2009 at 1:22 PM, David Zhou<da...@nodnod.net> wrote: >>> Post the part of your view that handles your forms. >> >> Nothing special >> >> if request.method == 'POST': >> form = RegisterForm(request.POST) >> if form.is_valid(): >> pass >> >> And second one is handled by middleware, in similar way > > Put in a hidden inputs in your fields to distinguish the two. For example: > > if request.method == 'POST' and '_hiddenname' in request.POST: > ... > > -- dz >
Thats what I did :) Sad there is no special option to add to form or was_post(), but thanks anyway; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---