forked from DGNum/gestioCOF
fix checkout data
This commit is contained in:
parent
912d970029
commit
cd64f20275
|
@ -959,7 +959,6 @@ $(document).ready(function() {
|
||||||
function getHistory() {
|
function getHistory() {
|
||||||
var data = {
|
var data = {
|
||||||
from: moment().subtract(1, 'days').format('YYYY-MM-DD HH:mm:ss'),
|
from: moment().subtract(1, 'days').format('YYYY-MM-DD HH:mm:ss'),
|
||||||
limit: 20,
|
|
||||||
};
|
};
|
||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|
|
@ -819,7 +819,9 @@ def account_read_json(request):
|
||||||
|
|
||||||
@teamkfet_required
|
@teamkfet_required
|
||||||
def kpsul_checkout_data(request):
|
def kpsul_checkout_data(request):
|
||||||
pk = request.POST.get('pk', 0)
|
pk = request.POST.get('pk', 0)
|
||||||
|
if not pk:
|
||||||
|
pk = 0
|
||||||
try:
|
try:
|
||||||
data = (Checkout.objects
|
data = (Checkout.objects
|
||||||
.annotate(
|
.annotate(
|
||||||
|
|
Loading…
Reference in a new issue