summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/expenses/admin.py2
-rw-r--r--app/expenses/models.py15
2 files changed, 8 insertions, 9 deletions
diff --git a/app/expenses/admin.py b/app/expenses/admin.py
index f014dca..76af266 100644
--- a/app/expenses/admin.py
+++ b/app/expenses/admin.py
@@ -5,6 +5,6 @@ from .models import Expense
class ExpenseAdmin(admin.ModelAdmin):
list_display = ('name', 'category', 'amount', 'date_month')
-
+ list_filter = ('date', 'category')
admin.site.register(Expense, ExpenseAdmin)
diff --git a/app/expenses/models.py b/app/expenses/models.py
index 746a459..ef9352f 100644
--- a/app/expenses/models.py
+++ b/app/expenses/models.py
@@ -4,14 +4,13 @@ from django.template.defaultfilters import slugify
import datetime
CATS = (
- ('1', "Yellowstone"),
- ('2', "Suburban"),
- ('3', "Groceries"),
- ('4', "Lodging"),
- ('5', "Camping"),
- ('6', "Restaurants"),
- ('7', "Petrol"),
- ('8', "Misc"),
+ ('1', "Travco"),
+ ('2', "Groceries"),
+ ('3', "Lodging"),
+ ('4', "Camping"),
+ ('5', "Restaurants"),
+ ('6', "Petrol"),
+ ('7', "Misc"),
)
class Expense(models.Model):