mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:59:16 +02:00
Follow request approve/refuse logic
This commit is contained in:
parent
cb9309c298
commit
e0dcb87f15
4 changed files with 97 additions and 1 deletions
|
@ -97,6 +97,15 @@ class FollowFactory(factory.DjangoModelFactory):
|
|||
)
|
||||
|
||||
|
||||
@registry.register
|
||||
class FollowRequestFactory(factory.DjangoModelFactory):
|
||||
target = factory.SubFactory(ActorFactory)
|
||||
actor = factory.SubFactory(ActorFactory)
|
||||
|
||||
class Meta:
|
||||
model = models.FollowRequest
|
||||
|
||||
|
||||
@registry.register(name='federation.Note')
|
||||
class NoteFactory(factory.Factory):
|
||||
type = 'Note'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue