Класс SuccessURLAllowedHostsMixin (Django 1.11)

from django.contrib.auth.views import SuccessURLAllowedHostsMixin

Потомки

Атрибуты

  Определено в
success_url_allowed_hosts = set([]) SuccessURLAllowedHostsMixin

Методы

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