summaryrefslogtreecommitdiff
path: root/app/deals/views.py
blob: bf0a4c8feade9dc54136963658eee6956de06eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.views.generic import DetailView, ListView
from django.views.generic.base import TemplateView

from .models import Deal, MyDeal


class DealDetailView(DetailView):
    model = Deal

class MyDealListView(ListView):
    model = MyDeal 

class MyDealLapListView(ListView):
    model = MyDeal 
    queryset = MyDeal.objects.filter(asin="newbest")


class GenerateDealCodeView(TemplateView):
    template_name = "deals/deal_code.html"