]> git.p6c8.net - pcdenotes.git/blobdiff - notes/views.py
Fix sorting in archive view
[pcdenotes.git] / notes / views.py
index 62a51e88fe7b45d4093d46062909eaeacaad2339..19ace1323137b0fd9856cc1bbedeb664bfa9cdb7 100644 (file)
@@ -8,7 +8,7 @@ from .models import Note
 # Create your views here.
 
 def note_list(request):
-    notes = Note.objects.all() if request.user.is_staff else Note.objects.filter(status=1)
+    notes = Note.objects.all() if request.user.is_staff else Note.objects.all_published()
 
     notes_count = notes.count()
     paginator = Paginator(notes, NOTES_PER_PAGE)

patrick-canterino.de