📝 More inline docs
This commit is contained in:
parent
3de9352227
commit
ed3a776bde
1 changed files with 6 additions and 0 deletions
|
|
@ -121,6 +121,12 @@ class Project:
|
||||||
def build_aerich_command(
|
def build_aerich_command(
|
||||||
self, app_label: str, db_url: Optional[str] = None
|
self, app_label: str, db_url: Optional[str] = None
|
||||||
) -> AerichCommand:
|
) -> 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:
|
if app_label not in self._apps:
|
||||||
raise RuntimeError(f"App '{app_label}' is not registered")
|
raise RuntimeError(f"App '{app_label}' is not registered")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue