X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/dc851e83d526d37eda6568818ab8b2363a510bd5..b0b5f36f4e346fea5edde6c1796b4632320bc0af:/notes/views.py?ds=inline diff --git a/notes/views.py b/notes/views.py index d2c8bb0..2c79254 100644 --- a/notes/views.py +++ b/notes/views.py @@ -10,7 +10,7 @@ from .models import Note def note_list(request): notes = Note.objects.all() if request.user.is_staff else Note.objects.filter(status=1) - notes_count = Note.objects.filter(status=1).count() + notes_count = notes.count() paginator = Paginator(notes, NOTES_PER_PAGE) page_number = 1