Hello,

I have a view like this:

def secondmethod(request,entry):

    if request.method='POST':

      return request.POST.get('selection')

   render(request,'eintrag.html','entry':entry)


def test(request):

    if request.method='POST':

      queryresult = model.objects.all()
      for entry in queryresult:
         eintrag = secondmethod(request,entry)

   render(request,'homepage.html')


This is a easy example. I call the view test, in for loop i want to call 
the view secondmethod several times. In function secondmethod eintrag.html 
render and the selection return back to test. Then next row from 
queryresult is submit to secondmethod. Is this possible?





-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ac58ef01-2e91-4aa1-8149-bc3b2e14e404%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to