Resolve "Adding cover art to my albums"

This commit is contained in:
Eliot Berriot 2019-11-27 12:26:12 +01:00
parent 7c6855d915
commit 11a533fa92
17 changed files with 388 additions and 27 deletions

View file

@ -16,14 +16,6 @@ class MutationFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
class Meta:
model = "common.Mutation"
@factory.post_generation
def target(self, create, extracted, **kwargs):
if not create:
# Simple build, do nothing.
return
self.target = extracted
self.save()
@registry.register
class AttachmentFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):