lingo: prevent partially initialized transaction objects
This commit is contained in:
parent
6fa8a8c3c6
commit
489775e265
|
@ -32,6 +32,7 @@ from django.views.generic import View, DetailView, ListView, TemplateView
|
|||
from django.conf import settings
|
||||
from django.contrib import messages
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.db.transaction import atomic
|
||||
|
||||
import eopayment
|
||||
|
||||
|
@ -185,6 +186,7 @@ class RemoveBasketItemApiView(View):
|
|||
|
||||
|
||||
class PayView(View):
|
||||
@atomic
|
||||
def post(self, request, *args, **kwargs):
|
||||
regie_id = request.POST.get('regie')
|
||||
next_url = request.POST.get('next_url')
|
||||
|
|
Loading…
Reference in New Issue