X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/41cbbf03fd231637646702e6445eaf9ebfa2c770..7e19e83d17bc24e910557b15f80c16d7e8c04102:/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)