no quotes here
This commit is contained in:
parent
452804dca2
commit
1ecf55f70c
|
@ -25,7 +25,7 @@ class ShopIndexView(ListView):
|
||||||
class ProductDetailView(LoginRequiredMixin, FormView):
|
class ProductDetailView(LoginRequiredMixin, FormView):
|
||||||
model = Product
|
model = Product
|
||||||
template_name = 'product_detail.html'
|
template_name = 'product_detail.html'
|
||||||
form_class = 'AddToOrderForm'
|
form_class = AddToOrderForm
|
||||||
context_object_name = 'product'
|
context_object_name = 'product'
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
@ -63,7 +63,7 @@ class CheckoutView(LoginRequiredMixin, FormView):
|
||||||
"""
|
"""
|
||||||
model = Order
|
model = Order
|
||||||
template_name = 'checkout.html'
|
template_name = 'checkout.html'
|
||||||
form_class='CheckoutForm'
|
form_class = CheckoutForm
|
||||||
context_object_name = 'order'
|
context_object_name = 'order'
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue