change Model.Form to CartPosition
This commit is contained in:
parent
16ce980215
commit
f78bfb6db0
|
@ -5,7 +5,7 @@ from webshop.models import (
|
||||||
Picture,
|
Picture,
|
||||||
Article,
|
Article,
|
||||||
Option,
|
Option,
|
||||||
OrderPosition
|
CartPosition
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class CartForm(forms.Form):
|
||||||
print('CartForm')
|
print('CartForm')
|
||||||
def ChangeAmount(self, _article_id):
|
def ChangeAmount(self, _article_id):
|
||||||
print('CartForm.ChangeAmount')
|
print('CartForm.ChangeAmount')
|
||||||
article = OrderPosition.objects.filter(pk=_article_id)
|
article = CartPosition.objects.filter(pk=_article_id)
|
||||||
amountfield = forms.IntegerField(
|
amountfield = forms.IntegerField(
|
||||||
label='pce',
|
label='pce',
|
||||||
help_text='Enter a Value between 1 and 99.',
|
help_text='Enter a Value between 1 and 99.',
|
||||||
|
|
Loading…
Reference in New Issue