summaryrefslogtreecommitdiff
path: root/app/unused_apps/expenses/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-02 15:02:12 -0500
committerluxagraf <sng@luxagraf.net>2020-12-02 15:02:12 -0500
commitab8055b5cab2523d925f59c65bc38df103a26991 (patch)
tree29e4597bc0d86d658f574c0c4f0b036351a68742 /app/unused_apps/expenses/views.py
parent87f692178a6e30719c564076f00c206642f36ce6 (diff)
deleted old apps and media
Diffstat (limited to 'app/unused_apps/expenses/views.py')
-rw-r--r--app/unused_apps/expenses/views.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/app/unused_apps/expenses/views.py b/app/unused_apps/expenses/views.py
deleted file mode 100644
index 98a4c70..0000000
--- a/app/unused_apps/expenses/views.py
+++ /dev/null
@@ -1,38 +0,0 @@
-from django.views.generic import ListView
-
-from .models import LuxExpense, Expense, Trip, CATS
-
-class ExpenseListView(ListView):
- model = Expense
- context_object_name = 'object_list'
- template_name = 'details/expenses.html'
-
- def get_queryset(self):
- return Expense.objects.filter(
- trip__slug=self.kwargs['slug']
- )
-
- def get_context_data(self, **kwargs):
- # Call the base implementation first to get a context
- context = super(ExpenseListView, self).get_context_data(**kwargs)
- context['categories'] = CATS
- return context
-
-class LuxExpenseListView(ListView):
- model = LuxExpense
- context_object_name = 'object_list'
- template_name = 'details/expenses.html'
-
- def get_context_data(self, **kwargs):
- # Call the base implementation first to get a context
- context = super(LuxExpenseListView, self).get_context_data(**kwargs)
- context['categories'] = CATS
- return context
-
-class TripListView(ListView):
- model = Trip
- context_object_name = 'object_list'
- template_name = 'archives/expenses.html'
-
- def get_queryset(self):
- return Trip.objects.all()