summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/budget/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/budget/views.py b/app/budget/views.py
index e291bde..906450c 100644
--- a/app/budget/views.py
+++ b/app/budget/views.py
@@ -22,6 +22,10 @@ class PurchaseUpdateView(UpdateView):
class LuxPurchaseListView(PaginatedListView):
model = LuxPurchase
+ def get_queryset(self):
+ queryset = super(LuxPurchaseListView, self).get_queryset()
+ return queryset[:30]
+
def get_context_data(self, **kwargs):
'''
Get Monthly Spending for a nice bar chart