Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
29f399ca
Commit
29f399ca
authored
Jul 19, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: change paginate threshold to 10
parent
294887db
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
views.py
book/views.py
+2
-2
views.py
dashboard/views.py
+2
-2
views.py
loans/views.py
+1
-1
views.py
users/views.py
+3
-3
No files found.
book/views.py
View file @
29f399ca
...
@@ -7,7 +7,7 @@ from .forms import Book, BookForm, Category, CategoryForm
...
@@ -7,7 +7,7 @@ from .forms import Book, BookForm, Category, CategoryForm
class
BookListView
(
generic
.
ListView
):
class
BookListView
(
generic
.
ListView
):
model
=
Book
model
=
Book
template_name
=
"books.html"
template_name
=
"books.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
@@ -59,7 +59,7 @@ class BookDeleteView(generic.edit.DeleteView):
...
@@ -59,7 +59,7 @@ class BookDeleteView(generic.edit.DeleteView):
class
CategoryListView
(
generic
.
ListView
):
class
CategoryListView
(
generic
.
ListView
):
model
=
Category
model
=
Category
template_name
=
"categories.html"
template_name
=
"categories.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
...
dashboard/views.py
View file @
29f399ca
...
@@ -7,7 +7,7 @@ from loans.models import BookLoan
...
@@ -7,7 +7,7 @@ from loans.models import BookLoan
class
OverduedLoanView
(
ListView
):
class
OverduedLoanView
(
ListView
):
model
=
BookLoan
model
=
BookLoan
template_name
=
"loans.html"
template_name
=
"loans.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
@@ -38,7 +38,7 @@ class OverduedLoanView(ListView):
...
@@ -38,7 +38,7 @@ class OverduedLoanView(ListView):
class
UpcomingLoanView
(
ListView
):
class
UpcomingLoanView
(
ListView
):
model
=
BookLoan
model
=
BookLoan
template_name
=
"loans.html"
template_name
=
"loans.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
...
loans/views.py
View file @
29f399ca
...
@@ -7,7 +7,7 @@ from .forms import BookLoanForm
...
@@ -7,7 +7,7 @@ from .forms import BookLoanForm
class
BookLoanListView
(
generic
.
ListView
):
class
BookLoanListView
(
generic
.
ListView
):
model
=
BookLoan
model
=
BookLoan
template_name
=
"loans.html"
template_name
=
"loans.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
...
users/views.py
View file @
29f399ca
...
@@ -85,7 +85,7 @@ class UserDeleteView(generic.edit.DeleteView):
...
@@ -85,7 +85,7 @@ class UserDeleteView(generic.edit.DeleteView):
class
LibrarianListView
(
UserListView
):
class
LibrarianListView
(
UserListView
):
model
=
Librarian
model
=
Librarian
template_name
=
"librarians/librarians.html"
template_name
=
"librarians/librarians.html"
paginate_by
=
5
paginate_by
=
10
class
LibrarianCreateView
(
UserCreateView
):
class
LibrarianCreateView
(
UserCreateView
):
...
@@ -116,7 +116,7 @@ class LibrarianDeleteView(UserDeleteView):
...
@@ -116,7 +116,7 @@ class LibrarianDeleteView(UserDeleteView):
class
MemberListView
(
UserListView
):
class
MemberListView
(
UserListView
):
model
=
Member
model
=
Member
template_name
=
"members/members.html"
template_name
=
"members/members.html"
paginate_by
=
5
paginate_by
=
10
class
MemberCreateView
(
UserCreateView
):
class
MemberCreateView
(
UserCreateView
):
...
@@ -235,7 +235,7 @@ class LibrarianResetPassword(SuccessMessageMixin, PasswordResetView):
...
@@ -235,7 +235,7 @@ class LibrarianResetPassword(SuccessMessageMixin, PasswordResetView):
class
LibrarianLoginHistoryView
(
generic
.
ListView
):
class
LibrarianLoginHistoryView
(
generic
.
ListView
):
model
=
LibrarianLoginHistory
model
=
LibrarianLoginHistory
template_name
=
"librarians/librarian_login_history.html"
template_name
=
"librarians/librarian_login_history.html"
paginate_by
=
5
paginate_by
=
10
def
get_queryset
(
self
):
def
get_queryset
(
self
):
queryset
=
super
()
.
get_queryset
()
queryset
=
super
()
.
get_queryset
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment