# HG changeset patch # User Madhusudan.C.S # Date 1289911195 -19800 # Node ID 394576ff8a2f4cd486a697cb1ca2bd3b656aab59 # Parent 6311e71ae54c560a51926e3423c00c24e8126328 Fix major bug: Change hard coded registration form redirect to based on User and do int conversions for ids. diff -r 6311e71ae54c -r 394576ff8a2f project/scipycon/registration/views.py --- a/project/scipycon/registration/views.py Mon Nov 15 19:28:57 2010 +0530 +++ b/project/scipycon/registration/views.py Tue Nov 16 18:09:55 2010 +0530 @@ -56,7 +56,7 @@ scope_entity = Event.objects.get(scope=scope) - reg = Registration.objects.get(pk=id) + reg = Registration.objects.get(pk=int(id)) wifi = Wifi.objects.get(user=reg.registrant) # TODO: This is an ugly hack to add accommodation form diff -r 6311e71ae54c -r 394576ff8a2f project/templates/registration/edit-registration.html --- a/project/templates/registration/edit-registration.html Mon Nov 15 19:28:57 2010 +0530 +++ b/project/templates/registration/edit-registration.html Tue Nov 16 18:09:55 2010 +0530 @@ -9,11 +9,11 @@ {% block overreg %}{% endblock overreg %} {% block url_select_login %} - "{% url scipycon_edit_registration params.scope 1 %}" + "{% url scipycon_edit_registration params.scope registration.id %}" {% endblock url_select_login %} {% block url_select_reg %} - "{% url scipycon_edit_registration params.scope 1 %}" + "{% url scipycon_edit_registration params.scope registration.id %}" {% endblock url_select_reg %} {% block formextras %}