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

Prevent multiple "Test collections" from being created #95

Open
tbrlpld opened this issue Oct 23, 2024 · 0 comments
Open

Prevent multiple "Test collections" from being created #95

tbrlpld opened this issue Oct 23, 2024 · 0 comments

Comments

@tbrlpld
Copy link

tbrlpld commented Oct 23, 2024

When you create a bunch of images with factories you end up with just as many collections.

To avoid that, we should make use of Meta.django_get_or_create on the collection name.

@tbrlpld tbrlpld changed the title Use django_get_or_create for collections Prevent multiple "Test collections" from being created Oct 25, 2024
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