Класс SuccessURLAllowedHostsMixin (Django 3.0)

from django.contrib.auth.views import SuccessURLAllowedHostsMixin

Потомки

Атрибуты

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

Методы

def get_success_url_allowed_hosts(self):
    return {self.request.get_host(), *self.success_url_allowed_hosts}