Skip to content

Commit

Permalink
Remove django_get_or_create from factories
Browse files Browse the repository at this point in the history
This was included in error, and was not doing what I thought. It
was causing the wrong objects to be created/obtained in factories.
  • Loading branch information
amstilp committed Dec 16, 2023
1 parent 91ecf1e commit 300d0c6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gregor_django/gregor_anvil/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class UploadWorkspaceFactory(DjangoModelFactory):

class Meta:
model = models.UploadWorkspace
django_get_or_create = ["research_center", "consent_group"]


class PartnerUploadWorkspaceFactory(DjangoModelFactory):
Expand All @@ -79,7 +78,6 @@ class PartnerUploadWorkspaceFactory(DjangoModelFactory):

class Meta:
model = models.PartnerUploadWorkspace
django_get_or_create = ["partner_group", "consent_group"]


class ExampleWorkspaceFactory(DjangoModelFactory):
Expand Down

0 comments on commit 300d0c6

Please sign in to comment.