Files
@ 348cf5e17195
Branch filter:
Location: conntrackt/conntrackt/tests/views.py - annotation
348cf5e17195
664 B
text/x-python
CONNT-22: Clarified license a bit. Added release notes.
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
|