remove unused code
This commit is contained in:
parent
dbb6fe9acb
commit
5e716b7f2b
|
@ -3,7 +3,6 @@ from webshop.models import (
|
||||||
Salutation,
|
Salutation,
|
||||||
City,
|
City,
|
||||||
Picture,
|
Picture,
|
||||||
Article,
|
|
||||||
Option,
|
Option,
|
||||||
CartPosition
|
CartPosition
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from decimal import Decimal
|
|
||||||
|
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.shortcuts import get_object_or_404, render
|
from django.shortcuts import get_object_or_404, render
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
|
@ -8,7 +6,6 @@ from django.contrib.auth.forms import UserCreationForm
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from webshop.models import (Article,
|
from webshop.models import (Article,
|
||||||
Category,
|
Category,
|
||||||
ArticleStatus,
|
|
||||||
Person,
|
Person,
|
||||||
City,
|
City,
|
||||||
Picture,
|
Picture,
|
||||||
|
@ -100,7 +97,6 @@ def article_details(request, article_id):
|
||||||
amount = AddToCartForm(request.POST)
|
amount = AddToCartForm(request.POST)
|
||||||
if amount.is_valid():
|
if amount.is_valid():
|
||||||
amount = amount.cleaned_data['amount']
|
amount = amount.cleaned_data['amount']
|
||||||
currency_id = request.session['currency']
|
|
||||||
article = Article.objects.get(id=article_id)
|
article = Article.objects.get(id=article_id)
|
||||||
try:
|
try:
|
||||||
# lookup if cart_id is already existent:
|
# lookup if cart_id is already existent:
|
||||||
|
@ -298,7 +294,6 @@ def cart(request):
|
||||||
|
|
||||||
checkout_form = CheckoutForm()
|
checkout_form = CheckoutForm()
|
||||||
|
|
||||||
|
|
||||||
return render(request, 'webshop/cart.html',
|
return render(request, 'webshop/cart.html',
|
||||||
{'cart_position_list': cart_position_list,
|
{'cart_position_list': cart_position_list,
|
||||||
'totalprice_list': totalprice_list,
|
'totalprice_list': totalprice_list,
|
||||||
|
|
Loading…
Reference in New Issue