(self, apps_and_models)
return apps_and_models_to_bake
Parses command line options to determine what apps and models for those apps we should bake.
Parses command line options to determine what apps and models for those apps we should bake.
Parses command line options to determine what apps and models for those apps we should bake .
def parse_bake_options(self, apps_and_models):
        """
            Parses command line options to determine what apps and models for those apps we should bake.
        """
        apps_and_models_to_bake = {}
        for app_and_model in apps_and_models:
            app_and_model_names = app_and_model.split(':')
            app_label = app_and_model_names[0]
            if len(app_and_model_names) == 2:
                selected_model_names = app_and_model_names[1].split(",")
            else:
                selected_model_names = None
            app, models = self.get_app_and_models(app_label, selected_model_names)
            apps_and_models_to_bake[app_label] = (models, app)
        return apps_and_models_to_bake
def parse_bake_options ( self , apps_and_models ) : apps_and_models_to_bake = { } for app_and_model in apps_and_models : app_and_model_names = app_and_model . split ( ':' ) app_label = app_and_model_names [ 0 ] if len ( app_and_model_names ) == 2 : selected_model_names = app_and_model_names [ 1 ] . split ( "," ) else : selected_model_names = None app , models = self . get_app_and_models ( app_label , selected_model_names ) apps_and_models_to_bake [ app_label ] = ( models , app ) return apps_and_models_to_bake