|
new file 100644
|
|
|
# Application imports.
|
|
|
from conntrackt.views import RedirectToNextMixin
|
|
|
|
|
|
|
|
|
class StaticSuccessUrlFakeMixin(object):
|
|
|
"""
|
|
|
Helper view for testing the RedirectToNextMixinView mixin.
|
|
|
"""
|
|
|
|
|
|
def get_success_url(self):
|
|
|
return self.success_url
|
|
|
|
|
|
|
|
|
class RedirectToNextMixinView(RedirectToNextMixin, StaticSuccessUrlFakeMixin):
|
|
|
"""
|
|
|
Helper view for testing the RedirectToNextMixinView mixin. StaticSuccessUrl
|
|
|
is there just to provide default for get_success_url().
|
|
|
"""
|
|
|
|
|
|
success_url = "/STATIC"
|
|
|
|
|
|
def __init__(self, request):
|
|
|
"""
|
|
|
Initialise the request to provided value.
|
|
|
"""
|
|
|
|
|
|
self.request = request
|