Added actions and tasks to purge domains and actors

This commit is contained in:
Eliot Berriot 2019-01-09 14:18:32 +01:00
parent 833daa242c
commit 233ac870be
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
10 changed files with 251 additions and 14 deletions

View file

@ -123,7 +123,7 @@ class ActionSerializer(serializers.Serializer):
if type(value) in [list, tuple]:
return self.queryset.filter(
**{"{}__in".format(self.pk_field): value}
).order_by("id")
).order_by(self.pk_field)
raise serializers.ValidationError(
"{} is not a valid value for objects. You must provide either a "