[01:29] cjohnston, can I run a workflow by you [01:30] I'm trying to understand django, I thought I had it but I'm getting a recursive error [01:32] can try svwilliams [01:34] so child agenda item [01:34] you are on the page [01:34] yup [01:34] ... agenda_item_update [01:35] ok [01:35] I've added a link that takes you to agenda_item_add_child [01:35] the render automatically sets the parent [01:36] so on the "if Request.POST" [01:36] whats the bug again please [01:36] nm [01:36] got it [01:37] 707123 [01:37] fwiw.. bug 707123 [01:37] Launchpad bug 707123 in loco-team-portal "When Updating a task add a link to add a subtask (affects: 1) (heat: 5)" [Medium,In progress] https://launchpad.net/bugs/707123 [01:37] ;-) [01:37] nice! [01:38] after the form.save in the if request.POST [01:38] I render back to the original parent [01:38] can you pastebin the code? [01:38] and thats when it goes into recursive nightmare [01:39] yup just thought of that one sec [01:40] http://pastie.org/2881070 [01:41] needs some cleaning its copied together other functions [01:42] what there is new [01:42] what lines [01:43] its all new [01:43] its a new function, which may [01:43] be the wrong way to do it [01:44] gotcha [01:44] * cjohnston is tired too fwiw [01:45] no worries a second pair of eyes sometimes is all one needs [01:46] I basically tried to understand add and update [01:46] and then implement a function around adding a child and returnin to the original update [01:47] ya.. im kinda thinkin thats a little too much [01:47] yeah I thought so too [01:48] the issue I had was when generating the new agenda_item [01:48] I need to set to it the parent and as I tried to implement it it grew into what you see [01:49] wait ... oh man I haven't been coding enough lately I think I may have it [01:49] when I do the render_to_response out to meetings/agenda_item_new.html [01:49] and it saves doesn't it post to agenda_item_new [01:50] a couple of prints statements would probably tell me [01:50] if thats the case I can get rid of the "if post" stuff [01:51] I think typing it out got my mind cranking again [01:51] I'll let you know how it goes [01:51] ok [01:52] svwilliams: tonight you made me think of something.. [01:52] yeah? [01:52] Initially I just wanted a url linking to add a new item basically [01:52] but.. that link should probably save the current item [01:52] and then set the current item as the parent item in the new one [01:53] I thought about that at first, so hmm [01:53] a new save button [01:53] that save's and adds a child [01:54] not a new save button.. just if you click the link 'Add Child Item' it saves the current item [01:55] ok [02:07] svwilliams: i have to head out.. [02:07] let me know how it goes [02:07] if you are having trouble, push the code to LP and mhall119 or i can look at it tomorrow. [02:10] ok, sounds good! === johnoxton_ is now known as johnoxton [20:14] Hello all [22:19] ping daker