mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:49:16 +02:00
Added Library model to have more granular federation management
This commit is contained in:
parent
a03f0ffea5
commit
f273faf9de
14 changed files with 159 additions and 53 deletions
|
@ -122,6 +122,17 @@ class FollowRequestFactory(factory.DjangoModelFactory):
|
|||
model = models.FollowRequest
|
||||
|
||||
|
||||
@registry.register
|
||||
class LibraryFactory(factory.DjangoModelFactory):
|
||||
actor = factory.SubFactory(ActorFactory)
|
||||
url = factory.Faker('url')
|
||||
federation_enabled = True
|
||||
download_files = False
|
||||
|
||||
class Meta:
|
||||
model = models.Library
|
||||
|
||||
|
||||
@registry.register(name='federation.Note')
|
||||
class NoteFactory(factory.Factory):
|
||||
type = 'Note'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue