def setup(self):
    self.model = self.cleaned_data['model']
    self.app_label = self.model._meta.app_label
    self.model_name = self.model._meta.model_name
    super(ModelBaseWidget, self).setup()
def setup(self):
    self.model = self.cleaned_data['model']
    self.app_label = self.model._meta.app_label
    self.model_name = self.model._meta.model_name
    super(ModelBaseWidget, self).setup()