from django import template
from web_exam.main.models import Profile

register = template.Library()


@register.simple_tag()
def user_profile():
    result = Profile.objects.all()
    if result:
        return True
    return False
from django import template
from web_exam.main.models import Profile

register = template.Library()


@register.simple_tag()
def user_profile():
    result = Profile.objects.all()
    if result:
        return True
    return False