mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:29:23 +02:00
Resolve "Screening for signups"
This commit is contained in:
parent
e6df21b96c
commit
e313fcd033
49 changed files with 1759 additions and 49 deletions
|
@ -74,3 +74,20 @@ class ReportFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
|
|||
return
|
||||
|
||||
self.target_owner = serializers.get_target_owner(self.target)
|
||||
|
||||
|
||||
@registry.register
|
||||
class UserRequestFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
|
||||
submitter = factory.SubFactory(federation_factories.ActorFactory, local=True)
|
||||
|
||||
class Meta:
|
||||
model = "moderation.UserRequest"
|
||||
|
||||
class Params:
|
||||
signup = factory.Trait(
|
||||
submitter=factory.SubFactory(federation_factories.ActorFactory, local=True),
|
||||
type="signup",
|
||||
)
|
||||
assigned = factory.Trait(
|
||||
assigned_to=factory.SubFactory(federation_factories.ActorFactory)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue