class SuccessURLAllowedHostsMixin

from django.contrib.auth.views import SuccessURLAllowedHostsMixin
Hierarchy diagram Documentation Source code

Descendants

Attributes

  Defined in
success_url_allowed_hosts = set([]) SuccessURLAllowedHostsMixin
Expand Collapse

Methods

def get_success_url_allowed_hosts(self): SuccessURLAllowedHostsMixin

61
62
63
64
def get_success_url_allowed_hosts(self):
    allowed_hosts = {self.request.get_host()}
    allowed_hosts.update(self.success_url_allowed_hosts)
    return allowed_hosts