📝 More inline docs

This commit is contained in:
Brian Wiborg 2025-10-01 22:04:30 +02:00
parent 3de9352227
commit ed3a776bde
No known key found for this signature in database

View file

@ -121,6 +121,12 @@ class Project:
def build_aerich_command(
self, app_label: str, db_url: Optional[str] = None
) -> AerichCommand:
"""
Build Aerich command for app with given app_label.
Aerich needs to see only the app of interest, but with the extra model
"aerich.models".
"""
if app_label not in self._apps:
raise RuntimeError(f"App '{app_label}' is not registered")