fix checkout data
This commit is contained in:
parent
912d970029
commit
cd64f20275
2 changed files with 3 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue