Re: ELSE condition not working

2009-01-17 Thread shreyas k
bmit_action }) if request.method == 'POST': Regards Shreyas On Sun, Jan 18, 2009 at 10:25 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Sun, 2009-01-18 at 10:21 +0800, shreyas k wrote: > > Hi , > > > > I have pas

ELSE condition not working

2009-01-17 Thread shreyas k
Hi , I have pasted the code here , when i try to edit it always enters the else condition. delete works fine Please assist. if request.method == 'GET': #if request.has_key('edit_id'): if 'edit_id' in request.GET: # replace default form with form based on row to edit try: tst

Re: Form object has no attribute 'save' ( form.is_bound returns true )

2009-01-17 Thread shreyas k
noted . Thank you Malcolm . On Sun, Jan 11, 2009 at 3:17 PM, Malcolm Tredinnick wrote: > > On Sat, 2009-01-10 at 21:38 -0800, Dmitri13 wrote: >> Hi Guys, >> I am unable to save to table TEST_QST ,it returns error QstForm >> object has no attribute 'save' >> I have confirmed that >> form.is_bo

Re: Django form HTML is rendered as TEXT

2008-12-26 Thread shreyas k
Hi Eric Thanks a lot .i wraped the template in the autoescape tag, Now its working fine Thanks & Regards Dmitri On Fri, Dec 26, 2008 at 2:55 PM, Eric Abrahamsen wrote: > > > On Dec 26, 2008, at 10:56 AM, s4shre...@gmail.com wrote: > >> >> Hi Guys, >> I am new to Django . My Django form HTML is