开发者

Javascript Validation in Django Admin

开发者 https://www.devze.com 2023-02-06 00:56 出处:网络
I\'d 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 wasn\'t some other Django conventional way to d

I'd 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 wasn't some other Django conventional way to do it. I looked around a bi开发者_开发问答t and didn't see anything, but I wanted to be sure I wasn't missing something.


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

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

None of these seems to contain client side validation code. So, you can use it safely.

0

精彩评论

暂无评论...
验证码 换一张
取 消