from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Permission


@login_required
def homepage(request):
    permissions = Permission.objects.filter(user=request.user)
    print(permissions)
    return render(request, 'home.html')

e3f1ea49aadf9e9e1666ea79757b3b99d5b856f8
<mask token>

<mask token>


@login_required
def homepage(request):
    permissions = Permission.objects.filter(user=request.user)
    print(permissions)
    return render(request, 'home.html')

from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Permission


@login_required
def homepage(request):
    permissions = Permission.objects.filter(user=request.user)
    print(permissions)
    return render(request, 'home.html')
