reg/views.py
changeset 77 121a7aa78469
parent 76 b0f5c8666edf
child 80 cb36fc4f29df
--- a/reg/views.py	Fri Apr 16 16:39:56 2010 +0530
+++ b/reg/views.py	Fri Apr 16 16:45:11 2010 +0530
@@ -169,7 +169,7 @@
                                                     venue=data['venue'],
                                                     created_by=user,
                                                    )
-                event_url = "/reg/event/view/%s"%(new_event.key)
+                event_url = "/workshop/registration/event/view/%s"%(new_event.key)
                 return redirect(event_url)
             else:
                 return render_to_response('event_create.html', {'user':user, 'form':form})
@@ -189,7 +189,7 @@
     try:
         event = Event.objects.get(key__iexact=key)
     except Event.DoesNotExist:
-        return redirect("/reg")
+        return redirect("/workshop/registration")
 
     is_attendee = True if user.is_active and user in event.attendees.all() else False
     is_org = True if user in event.organizers.all() else False
@@ -309,7 +309,7 @@
     try:
         event = Event.objects.get(key__iexact=event_key)
     except Event.DoesNotExist:
-        return redirect("/reg")
+        return redirect("/workshop/registration")
 
     if user in event.organizers.all() and user.is_staff:
         event.registration_is_open = True
@@ -326,7 +326,7 @@
     try:
         event = Event.objects.get(key__iexact=event_key)
     except Event.DoesNotExist:
-        return redirect("/reg")
+        return redirect("/workshop/registration")
 
     if user in event.organizers.all() and user.is_staff:
         event.registration_is_open = False
@@ -345,12 +345,12 @@
         try:
             event = Event.objects.get(key__iexact=event_key)
         except Event.DoesNotExist:
-            return redirect("/reg")
+            return redirect("/workshop/registration")
 
         event.attendees.add(user)
         return render_to_response("event_register.html", {"user":user, 'event':event})
     else:
-        return redirect("/reg")
+        return redirect("/workshop/registration")
 
 def view_profile(request):
     """ check if user is logged in.