(self, app_label, model_names)
return (app, models)
Gets the app and models when given app_label and model names
Gets the app and models when given app_label and model names
Gets the app and models when given app_label and model names
def get_app_and_models(self, app_label, model_names):
        """
            Gets the app and models when given app_label and model names
        """
        try:
            app = apps.get_app_config(app_label)
        except:
            raise CommandError("%s is ImproperlyConfigured - did you remember to add %s to settings.INSTALLED_APPS?" %
                               (app_label, app_label))

        models = self.get_selected_models(app, model_names)
        return (app, models)
def get_app_and_models ( self , app_label , model_names ) : try : app = apps . get_app_config ( app_label ) except : raise CommandError ( "%s is ImproperlyConfigured - did you remember to add %s to settings.INSTALLED_APPS?" % ( app_label , app_label ) ) models = self . get_selected_models ( app , model_names ) return ( app , models )