def get_context_data(self, *args, **kwargs): context = super().get_context_data(**kwargs) context['description'] = self.description context['title'] = self.title context['domain_names'] = get_domain_names() return context
def get_context_data(self, *args, **kwargs): """Provide context data to the template.""" context = super().get_context_data(**kwargs) context['title'] = matrixsynapse.name context['description'] = matrixsynapse.description context['domain_names'] = get_domain_names() return context
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['domain_name'].choices = utils.get_domain_names()
def __init__(self, *args, **kwargs): """Initialize the form object.""" super().__init__(*args, **kwargs) self.fields['domain_name'].choices = get_domain_names()