The following commit has been merged in the master branch:
commit 1accc17462090dbc809566909f8bf1b2b17106e7
Author: Michal Čihař <[email protected]>
Date:   Thu Oct 8 16:30:46 2009 +0200

    Go to review after approving/deleting.

diff --git a/phonedb/views.py b/phonedb/views.py
index c6b681f..b6eee70 100644
--- a/phonedb/views.py
+++ b/phonedb/views.py
@@ -253,7 +253,7 @@ def approve(request, vendorname, id):
 
     phone.state = 'approved'
     phone.save()
-    return HttpResponseRedirect(phone.get_absolute_url())
+    return HttpResponseRedirect('/phones/review/')
 
 @login_required
 def delete(request, vendorname, id):
@@ -266,7 +266,7 @@ def delete(request, vendorname, id):
 
     phone.state = 'deleted'
     phone.save()
-    return HttpResponseRedirect(phone.get_absolute_url())
+    return HttpResponseRedirect('/phones/review/')
 
 def phones_csv(request):
     # Create the HttpResponse object with the appropriate CSV header.

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to