Files
@ ea8aa73f8ebb
Branch filter:
Location: conntrackt/conntrackt/tests/views.py - annotation
ea8aa73f8ebb
664 B
text/x-python
CONNT-12: Implemented the mixin for returning success URL using the passed GET parameter.
ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb ea8aa73f8ebb | # 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
|