golf/views/view_director.py
def directorView(request):
    """
    View function for director home page
    Sends the club, the name and logo are used in the banner
    Sends the courses and courseTees for the printouts button
    url: '/golf/'
    """
    resObject = {}
    tempClub = serializers.serialize('json', [Club.objects.get(pk=1)])
    resObject['club'] = tempClub[1:-1]
    resObject['courseTees'] = serializers.serialize('json', CourseTee.objects.all().order_by('-default', 'priority'))
    resObject['courses'] = serializers.serialize('json', Course.objects.all().order_by('priority'))
    return render(request, 'golf/director.html', resObject)

    View function for director home page
    Sends the club, the name and logo are used in the banner
    Sends the courses and courseTees for the printouts button
    url: '/golf/'
    
View function for director home page
Sends the club, the name and logo are used in the banner
Sends the courses and courseTees for the printouts button
url: '/golf/'
View function for director home page Sends the club the name and logo are used in the banner Sends the courses and courseTees for the printouts button url : ' / golf / '
def directorView(request):
    resObject = {}
    tempClub = serializers.serialize('json', [Club.objects.get(pk=1)])
    resObject['club'] = tempClub[1:-1]
    resObject['courseTees'] = serializers.serialize('json', CourseTee.objects.all().order_by('-default', 'priority'))
    resObject['courses'] = serializers.serialize('json', Course.objects.all().order_by('priority'))
    return render(request, 'golf/director.html', resObject)
def directorView ( request ) : resObject = { } tempClub = serializers . serialize ( 'json' , [ Club . objects . get ( pk = 1 ) ] ) resObject [ 'club' ] = tempClub [ 1 : - 1 ] resObject [ 'courseTees' ] = serializers . serialize ( 'json' , CourseTee . objects . all ( ) . order_by ( '-default' , 'priority' ) ) resObject [ 'courses' ] = serializers . serialize ( 'json' , Course . objects . all ( ) . order_by ( 'priority' ) ) return render ( request , 'golf/director.html' , resObject )
View function for director home page
Sends the club, the name and logo are used in the banner
Sends the courses and courseTees for the printouts button
url: '/golf/'
View function for director home page Sends the club the name and logo are used in the banner Sends the courses and courseTees for the printouts button url : ' / golf / '
"""
    View function for director home page
    Sends the club, the name and logo are used in the banner
    Sends the courses and courseTees for the printouts button
    url: '/golf/'
    """
request