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() {
|
||||
var data = {
|
||||
from: moment().subtract(1, 'days').format('YYYY-MM-DD HH:mm:ss'),
|
||||
limit: 20,
|
||||
};
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
|
|
|
@ -820,6 +820,8 @@ def account_read_json(request):
|
|||
@teamkfet_required
|
||||
def kpsul_checkout_data(request):
|
||||
pk = request.POST.get('pk', 0)
|
||||
if not pk:
|
||||
pk = 0
|
||||
try:
|
||||
data = (Checkout.objects
|
||||
.annotate(
|
||||
|
|
Loading…
Reference in a new issue