@@ -0,0 +1,228 @@
+from django import template%0Afrom django.contrib.auth.models import Group%0Aregister = template.Library()%0A%0A%0Adef is_teacher(user):%0A    if user.is_superuser:%0A        return True%0A    return user.groups.filter(name='Teacher').exists()%0A

Update and rename oppgavegen to oppgavegen/templatetags/app_filters.py