feat: cart
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from django import forms
|
||||
from django.forms import widgets
|
||||
|
||||
|
||||
class CartItemForm(forms.Form):
|
||||
"""
|
||||
<input type="hidden" name="product" value="{{ product.pk }}">
|
||||
<label for="quantity">{% translate 'Cantidad' %}</label>
|
||||
<input id="quantity" type="number" name="quantity" value="1">
|
||||
"""
|
||||
|
||||
product = forms.IntegerField(widget=widgets.HiddenInput)
|
||||
quantity = forms.IntegerField()
|
||||
Reference in New Issue
Block a user