Fix major bug: Change hard coded registration form redirect to based on User and do int conversions for ids.
--- 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
--- 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 %}