Update djangojs.js to current Django

This commit is contained in:
Raphael Michel
2019-05-19 14:10:22 +02:00
parent 036a555374
commit 6e220cbbd8

View File

@@ -28,7 +28,7 @@
if (typeof(value) == 'undefined') {
return (count == 1) ? singular : plural;
} else {
return value[django.pluralidx(count)];
return value.constructor === Array ? value[django.pluralidx(count)] : value;
}
};