From 3de9352227008595b3e5e98cc25375371fbe60db Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Wed, 1 Oct 2025 22:00:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=F0=9F=A9=B9=20More=20inline=20docs?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/core/runtime.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ohmyapi/core/runtime.py b/src/ohmyapi/core/runtime.py index 1cc1773..fdb811a 100644 --- a/src/ohmyapi/core/runtime.py +++ b/src/ohmyapi/core/runtime.py @@ -127,7 +127,9 @@ class Project: # Get a fresh copy of the config (without aerich.models anywhere) tortoise_cfg = self.build_tortoise_config(db_url=db_url) + # Prevent leaking other app's models to Aerich. tortoise_cfg["apps"] = {app_label: tortoise_cfg["apps"][app_label]} + # Append aerich.models to the models list of the target app only tortoise_cfg["apps"][app_label]["models"].append("aerich.models")