def discover_models(self):
        apps = [(app, get_app(app)) for app in self.apps]
        for app_name, app_module in apps:
            self.appmodels[app_name] = []
            models = get_models(app_module)
            models_to_exclude = getattr(settings, 'DILLA_EXCLUDE_MODELS', None)
            if models_to_exclude:
                for excluded_model in models_to_exclude:
                    try:
                        models.remove(get_model(*excluded_model.split('.')))
                    except ValueError:
                            pass
            self.appmodels[app_name].extend(models)
        log.debug(self.appmodels % 'Preparing to spam following models: %s')
dataset/ETHPy150Open aerosol/django-dilla/dilla/__init__.py/Dilla.discover_models/swapped operands of `%`