Denormalized audio permission logic in a separate table to enhance performance

This commit is contained in:
Eliot Berriot 2019-10-19 18:10:42 +02:00
parent afbf7151c8
commit 4e7f1e63d2
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
17 changed files with 648 additions and 21 deletions

View file

@ -165,6 +165,9 @@ class MusicLibraryFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
class Meta:
model = "music.Library"
class Params:
local = factory.Trait(actor=factory.SubFactory(ActorFactory, local=True))
@registry.register
class LibraryScanFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):