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:
Edgar P. Burkhart 2022-12-21 09:18:47 +01:00
parent b090902648
commit 495c64fcdc
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
6 changed files with 29 additions and 47 deletions

View file

@ -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"