divio/django-shop — Issue #129: allow for redirects to be overridden
Author: airtonix
Created: 2011-12-20 11:11:39+00:00
State: open

I'm using djangoshop inside djangocms, via a cmsplugin, cmsapp and cmsmenu.

now the problem is that because shop.urls are no longer in my projects url conf (and instead handled by the menu and cmsapp), redirects in the CartDetails and CartItemDetails (or anywhere else you hardcode redirect urlconf names) fail to resolve since my shop application has it's urls namespaced.

By allowing CartDetails.as_view to accept a kwarg like success_redirect='theshop:cart', we can make using djangoshop as a cmsplugin easier.

If I am missing an obvious way to override this without modifying the code, let me know.