🐛 Fix ohmyapi.core.runtime.App.models
This commit is contained in:
parent
e3abc642ed
commit
4ec2f87ce2
1 changed files with 2 additions and 4 deletions
|
|
@ -129,7 +129,7 @@ class Project:
|
|||
}
|
||||
|
||||
for app_name, app in self._apps.items():
|
||||
modules = list(app.models.keys())
|
||||
modules = list(app._models.keys())
|
||||
if modules:
|
||||
config["apps"][app_name] = {
|
||||
"models": modules,
|
||||
|
|
@ -372,9 +372,7 @@ class App:
|
|||
for module in self._models:
|
||||
for model in self._models[module]:
|
||||
out.append(model)
|
||||
return {
|
||||
module: out,
|
||||
}
|
||||
return out
|
||||
|
||||
@property
|
||||
def routers(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue