felsen / django-survey

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

extra / #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
        <div>{% if view_submissions %}<a href='{% url answers-detail
survey_slug=survey.slug,key=answer.session_key %}/'>

makes this:

http://pycon08a:8000/survey/answers/b/a32a80142c0e7d9ab3b3a2b954036941//

The extra / at the end does not match the pattern it should:

    url(r'^answers/(?P<survey_slug>[-\w]+)/(?P<key>[a-fA-F0-9]{10,40})/$',
        answers_detail,  name='answers-detail'),

+        <div>{% if view_submissions %}<a href='{% url answers-detail
survey_slug=survey.slug,key=answer.session_key %}'>

Ran 3 tests in 1.096s
OK

and now I don't get a 404 :)

Original issue reported on code.google.com by cfkars...@gmail.com on 18 Jul 2008 at 5:22

GoogleCodeExporter commented 9 years ago
Thank you for this bug report + the solution. It is fixed in r80.
--yml

Original comment by yann.ma...@gmail.com on 21 Jul 2008 at 11:15

GoogleCodeExporter commented 9 years ago

Original comment by yann.ma...@gmail.com on 21 Jul 2008 at 11:16