class SuccessURLAllowedHostsMixin
from django.contrib.auth.views import SuccessURLAllowedHostsMixin
Descendants
Attributes
Defined in | |
---|---|
success_url_allowed_hosts = set()
|
SuccessURLAllowedHostsMixin |
Methods
def
get_success_url_allowed_hosts(self):
SuccessURLAllowedHostsMixin
¶
def
get_success_url_allowed_hosts(self):
SuccessURLAllowedHostsMixin
¶
37 38 39 40 | def get_success_url_allowed_hosts(self):
allowed_hosts = {self.request.get_host()}
allowed_hosts.update(self.success_url_allowed_hosts)
return allowed_hosts
|