devilsbibble / django-survey

Automatically exported from code.google.com/p/django-survey
0 stars 0 forks source link

Some views were accepting a template argument but never actually using it #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some views had a template_name argument with a default value that was not the 
correct default for 
a view, and in the render clause the template_name passed it was not being used 
at all.

Also the 'survey_update()' view looked like it was just a copy and paste of the 
'survey_add()' view, 
which was passing in the wrong 'title' variable to the context. What is more it 
is handy if the context 
had the survey object if we actually have it.

Attached is a patch that fixes (well, I am assuming these were mistakes) this.
This is against subversion revision 92.

Original issue reported on code.google.com by scan...@gmail.com on 28 Oct 2008 at 4:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the patch.
--yml

Original comment by yann.ma...@gmail.com on 30 Oct 2008 at 1:27