C
Size: a a a
C
AV
C
AV
AV
C
C
AV
class ScheduleList(ListView):
model = Schedule
queryset = Schedule.objects.all().select_related()
context_object_name = "schedule_list"
def get_context_data(self, **kwargs):
# get all context Schedule class
context = super().get_context_data(**kwargs)
# add context about all rights
rights_list = [i.name for i in RightsList.objects.all()]
context["rights_list"] = rights_list
return context
C
DT
C
C
DT
C
AV
C
А
DT
DT