Make discount code views redirection more configurable.

Use ``success_url`` class attribute.