from django.shortcuts import render
from django.contrib.auth.decorators import permission_required
from . import models


@permission_required("holiday.view_holiday")
def index(request):
    holiday = models.Holiday.objects.all()
    return render(request, "holiday/index.html", {
        "holiday": holiday
    })

16e18e47bbc8b55b1636364c2eb9795744bddf7e
<mask token>

<mask token>


@permission_required('holiday.view_holiday')
def index(request):
    holiday = models.Holiday.objects.all()
    return render(request, 'holiday/index.html', {'holiday': holiday})

from django.shortcuts import render
from django.contrib.auth.decorators import permission_required
from . import models


@permission_required('holiday.view_holiday')
def index(request):
    holiday = models.Holiday.objects.all()
    return render(request, 'holiday/index.html', {'holiday': holiday})

from django.shortcuts import render
from django.contrib.auth.decorators import permission_required
from . import models


@permission_required("holiday.view_holiday")
def index(request):
    holiday = models.Holiday.objects.all()
    return render(request, "holiday/index.html", {
        "holiday": holiday
    })
