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

Figure out if seeded data should interact with existing data #79

Open
AngelOnFira opened this issue Aug 3, 2020 · 0 comments
Open

Figure out if seeded data should interact with existing data #79

AngelOnFira opened this issue Aug 3, 2020 · 0 comments
Assignees

Comments

@AngelOnFira
Copy link
Collaborator

In cases where a model wants a relationship with another model through one-to-one, many-to-one, or many-to-many, currently, it can only use objects that were created in the current execute. It can look in the database and find other objects that match, but those might not have been created by django-seed. It would be helpful to have a flag that allowed django-seed to make relationships with existing data when seeding. Otherwise it should only use objects that are stored in the inserted list from the current django-seed session.

This will also require looking into how the "inserted" list is stored over multiple executes.

@AngelOnFira AngelOnFira self-assigned this Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant