per page, with , order by , clip by
Results of 1 - 1 of about 1 for NumberListForm (0.001 sec.)
PostgreSQL 固有のフォームフィールドとウィジェット 9414
PostgreSQL 固有のフォームフィールドとウィジェット これらのフィールドやウィジェットはすべて django.contrib.postgres.forms モジュールから利用できます。 フィールド SimpleArrayField class SimpleArrayField ( base_field , delimiter = ',' , max_le ... 使われます。たとえば: >>> from django import forms >>> from django.contrib.postgres.forms import SimpleArrayField >>> class NumberListForm ( forms . Form ): ... numbers = SimpleArrayField ( forms . IntegerField ()) ... >>> form = NumberListForm ({ "numbers" : " ... 1,2,3" }) >>> form . is_valid () True >>> form . cleaned_data {'numbers': [1, 2, 3]} >>> form = NumberListForm ({ "numbers" : "1,2,a" }) >>> form . is_valid () False delimiter これはオプションの引数で、デフォルトはコンマ , です。この ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/forms.html
PREV 1 NEXT