from django.shortcuts import render

from .models import Document


def documents(request):
    docs = Document.objects.all().order_by("title")
    return render(request, 'home.html', {'documents': docs})

@@ -1,12 +1,70 @@
+from django.contrib.auth.decorators import login_required%0A
 from django.
@@ -119,16 +119,32 @@
 ument%0A%0A%0A
+@login_required%0A
 def docu

Add required login to maedchenbund