I guess the error is in the line where u are passing the parameters to ShowAuctionDetails view. Check if it works without passing request object as the parameter. It worked in a similar view in my project.
The function signature then would be: ShowAuctionDetails(slug=currentslug,selfbidder=1) Hope it helps. On Fri, Feb 27, 2009 at 11:05 AM, Bobby Roberts <tchend...@gmail.com> wrote: > > > You just call it, views are normal python functions, that being said it > is > > often better to redirect where possible(or sensible). > > > > Alex > > hey alex - > > Thanks for your quick reply. Is my syntax above correct to execute > it? it doesn't seem to be working at all. I know the code is > executing at the line immediately above this but this line seems to > just get skipped right on over. Here's the full code: > > > > currentauctionid=request.session["newbidauctionid"] > sb=Bid.objects.order_by('-id').filter(AuctionId=float > (currentauctionid)) > for id in sb: > topbidder=id.BidderId #get the top bidder's id on the auction > if float(request.user.id)==float(topbidder): #This will > determine if the peron is the current high bidder > currentslug=slug #this line executes fine > controltransfer=ShowAuctionDetails > (request,slug=currentslug,selfbidder=1) #this will for the "can't > outbid yourself message... this line is skipped > else: > pass > break # exit the loop > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---