Skip to content
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

Seed specific model with command #113

Open
Ali-Aref opened this issue Oct 20, 2022 · 0 comments
Open

Seed specific model with command #113

Ali-Aref opened this issue Oct 20, 2022 · 0 comments

Comments

@Ali-Aref
Copy link

I want to seed an specific model in my App. let's assume we have an app named myproduct which has two models category and products.

Using command

python manage.py seed myproduct --number=10

seeds all the models. I want to seed only the category first. or maybe I have around 10 or 11 categories and I only want to seed products. but, not both of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant