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
¶
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
|