golf/views/view_test.py
def testView(request):
    """
    Trying to find the best way to serialize data
    """
    #club = Club.objects.order_by('-id').values('name', 'logo', 'default_tournament_name', 'players_last_updated')[0]
    data = serializers.serialize("json", Club.objects.all().order_by('-id'), fields=('name', 'logo', 'default_tournament_name', 'players_last_updated', 'data'))
    #data = serializers.serialize("json", CourseTee.objects.all().order_by('-default', 'priority'), fields=('id', 'name', 'priority', 'default', 'slope', 'color', 'course__name', 'course__id'))
    print(data)
    return JsonResponse(data, safe=False)

    Trying to find the best way to serialize data
    
Trying to find the best way to serialize data
Trying to find the best way to serialize data
def testView(request):
    data = serializers.serialize("json", Club.objects.all().order_by('-id'), fields=('name', 'logo', 'default_tournament_name', 'players_last_updated', 'data'))
    print(data)
    return JsonResponse(data, safe=False)
def testView ( request ) : data = serializers . serialize ( "json" , Club . objects . all ( ) . order_by ( '-id' ) , fields = ( 'name' , 'logo' , 'default_tournament_name' , 'players_last_updated' , 'data' ) ) print ( data ) return JsonResponse ( data , safe = False )
Trying to find the best way to serialize data
Trying to find the best way to serialize data
"""
    Trying to find the best way to serialize data
    """ #club = Club.objects.order_by('-id').values('name', 'logo', 'default_tournament_name', 'players_last_updated')[0] #data = serializers.serialize("json", CourseTee.objects.all().order_by('-default', 'priority'), fields=('id', 'name', 'priority', 'default', 'slope', 'color', 'course__name', 'course__id'))
request