Javascript validation in Django admin

I would like to use Javascript to validate forms in the Django admin interface. I was going to use this jQuery plugin , but I wanted to make sure that there was no other ordinary Django way for it. I looked around a bit and did not see anything, but I wanted to be sure that nothing was missing.

+3
source share
1 answer

Here is the list of javascripts Django admin loads by default on the template change_form.html:

core.js
admin/RelatedObjectLookups.js
js/jquery.min.js
js/jquery.init.js
js/actions.min.js

None of them seem to contain client-side verification code. That way you can use it safely.

0
source

Source: https://habr.com/ru/post/1786744/


All Articles