Update layout
Modified navbar content Moved categories up on homepage Load all snapshots on homepage Load 64 transactions per page
This commit is contained in:
parent
b090902648
commit
495c64fcdc
6 changed files with 29 additions and 47 deletions
|
@ -23,7 +23,7 @@ from .models import (
|
|||
def index(request):
|
||||
_transactions = Transaction.objects.all()[:10]
|
||||
_categories = Category.objects.all()
|
||||
_snapshots = Snapshot.objects.all()[:5]
|
||||
_snapshots = Snapshot.objects.all()
|
||||
|
||||
context = {
|
||||
"transactions": _transactions,
|
||||
|
@ -43,7 +43,7 @@ class LogoutView(auth_views.LogoutView):
|
|||
|
||||
|
||||
class TransactionListView(LoginRequiredMixin, ListView):
|
||||
paginate_by = 20
|
||||
paginate_by = 64
|
||||
model = Transaction
|
||||
template_name = "main/transactions.html"
|
||||
context_object_name = "transactions"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue