2021-03-11から1日間の記事一覧
フォームクラスを作る際、フィールド定義に使うオプションなど。 class UserForm(forms.Form): f = forms.EmailField(xxx=xxx) Form fields | Django ドキュメント | Django Field.clean(value) f = forms.EmailField() f.clean('xxx') 渡された値でフォーム…
フォームクラスを作る際、フィールド定義に使うオプションなど。 class UserForm(forms.Form): f = forms.EmailField(xxx=xxx) Form fields | Django ドキュメント | Django Field.clean(value) f = forms.EmailField() f.clean('xxx') 渡された値でフォーム…