summaryrefslogtreecommitdiff
path: root/app/deals/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/deals/admin.py')
-rw-r--r--app/deals/admin.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/deals/admin.py b/app/deals/admin.py
index 3686309..f4c6009 100644
--- a/app/deals/admin.py
+++ b/app/deals/admin.py
@@ -4,7 +4,7 @@ from django.contrib.gis.admin import OSMGeoAdmin
from django.contrib.contenttypes.admin import GenericStackedInline
from django_admin_listfilter_dropdown.filters import DropdownFilter, RelatedDropdownFilter, ChoiceDropdownFilter
-from .models import Deal, Brand, MyDeal
+from .models import Deal, Brand, MyDeal, REIDeal
@admin.register(Deal)
@@ -42,3 +42,11 @@ class MyDealAdmin(OSMGeoAdmin):
}
),
)
+
+
+@admin.register(REIDeal)
+class DealAdmin(OSMGeoAdmin):
+ list_display = ('title', 'rei_link', 'brand_str', 'category', 'deal_price', 'original_price', 'generate_deal' )
+ search_fields = ['brand_str', 'title', ]
+ list_filter = ('category', 'brand_str',)
+ list_editable = ('generate_deal',)