-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to get ddl only from selected apps #7
Conversation
traceback.print_exc() | ||
self.stderr.write(f"failed to create migrations, {e}") | ||
exit(1) | ||
selected_apps = options.get("apps", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selected_apps = options.get("apps", None) | |
selected_apps = options.get("apps", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesnt work for me,
If I pass [] the check app_label not in apps:
throw the error TypeError: argument of type 'NoneType' is not iterable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test for this.
d230a73
to
929f046
Compare
In django your project are separated into apps.
each apps has its own models, this PR enables to import DDL for partial set of the installed apps
Screen.Recording.2024-01-24.at.10.34.57.mov