if self.extra_control is not None:
                if hasattr(self.extra_control, "items"):
                    extra_control = {model: render(template)
                                     for model, template
                                     in self.extra_control.items()}