File: views.py

package info (click to toggle)
python-django-registration 2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 708 kB
  • ctags: 293
  • sloc: python: 1,601; makefile: 85
file content (18 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Viw classes to exercise options of the registration view behavior not
covered by the built-in workflows.

"""

from registration.backends.model_activation.views import ActivationView


class ActivateWithSimpleRedirect(ActivationView):
    def get_success_url(self, user):
        """
        Returns a simple string URL to redirect to on success, rather
        than a (view, args, kwargs) 3-tuple, to test handling of that
        case.

        """
        return '/'