mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:29:23 +02:00
See #890: initial API endpoint to handle management of reports
This commit is contained in:
parent
815d9c02f8
commit
8f7ab82117
6 changed files with 90 additions and 2 deletions
|
@ -14,6 +14,7 @@ from django.utils import timezone
|
|||
from funkwhale_api.federation import models as federation_models
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
|
||||
|
||||
class InstancePolicyQuerySet(models.QuerySet):
|
||||
def active(self):
|
||||
return self.filter(is_active=True)
|
||||
|
@ -168,4 +169,4 @@ def set_handled_date(sender, instance, **kwargs):
|
|||
if instance.is_handled is True and not instance.handled_date:
|
||||
instance.handled_date = timezone.now()
|
||||
elif not instance.is_handled:
|
||||
instance.handled_date = None
|
||||
instance.handled_date = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue