X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/41cbbf03fd231637646702e6445eaf9ebfa2c770..89489ad3b1d67fcf4fffc5c11c636b6e96cc4e85:/notes/views.py diff --git a/notes/views.py b/notes/views.py index 62a51e8..19ace13 100644 --- a/notes/views.py +++ b/notes/views.py @@ -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)