def get_parties(self, obj):
        """All parties."""
        return PartySerializer(Party.objects.all(), many=True).data
def get_parties ( self , obj ) : return PartySerializer ( Party . objects . all ( ) , many = True ) . data
All parties.