fix checkout data

This commit is contained in:
Aurélien Delobelle 2016-09-05 18:09:34 +02:00
parent 912d970029
commit cd64f20275
2 changed files with 3 additions and 2 deletions

View file

@ -959,7 +959,6 @@ $(document).ready(function() {
function getHistory() {
var data = {
from: moment().subtract(1, 'days').format('YYYY-MM-DD HH:mm:ss'),
limit: 20,
};
$.ajax({
dataType: "json",

View file

@ -819,7 +819,9 @@ def account_read_json(request):
@teamkfet_required
def kpsul_checkout_data(request):
pk = request.POST.get('pk', 0)
pk = request.POST.get('pk', 0)
if not pk:
pk = 0
try:
data = (Checkout.objects
.annotate(