(self, app, model_names)
Returns the model for a given app.  If given model_names, returns those so long as the model names are
            actually models in the given app.
Returns the model for a given app.  If given model_names, returns those so long as the model names are
            actually models in the given app.
Returns the model for a given app . If given model_names returns those so long as the model names are actually models in the given app .
def get_selected_models(self, app, model_names):
        """
            Returns the model for a given app.  If given model_names, returns those so long as the model names are
            actually models in the given app.
        """
        if model_names:
            try:
                return [app.get_model(model_name) for model_name in model_names]
            except:
                raise CommandError("One or more of the models you entered for %s are incorrect." % app_label)
        else:
            return app.get_models()
def get_selected_models ( self , app , model_names ) : if model_names : try : return [ app . get_model ( model_name ) for model_name in model_names ] except : raise CommandError ( "One or more of the models you entered for %s are incorrect." % app_label ) else : return app . get_models ( )