X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/332679e96e43730862622eb3325b3d2f9d0e473a..9de0dae172be3d7bc2526d39637d95c23a685aa1:/notes/views.py?ds=sidebyside 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)