per page, with , order by , clip by
Results of 1 - 10 of about 11 for TimeField (0.006 sec.)
データベース関数 12429
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... 示的に正しいデータベース型にキャストされない限り、不正な型に変換される可能性があります: >>> from django.db.models import DateTimeField >>> from django.db.models.functions import Cast , Coalesce >>> from django.utils import timezone >>> now = timezone . now ... () >>> Coalesce ( "updated" , Cast ( now , DateTimeField ())) Collate class Collate ( expression , collation ) [ソース] クエリに使用する式と照合順序名 (collation name) を指定します ... とデータベースエラーになります。 使用例: class Blog ( models . Model ): body = models . TextField () modified = models . DateTimeField ( auto_now = True ) class Comment ( models . Model ): body = models . TextField () modified = models . DateTimeField ( aut ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Django 1.8.13 リリースノート 11380
Django 1.8.13 リリースノート May 2, 2016 Django 1.8.13 fixes several bugs in 1.8.12. バグ修正 Fixed TimeField microseconds round-tripping on MySQL and SQLite ( #26498 ). Restored conversion of an empty string to null when saving values of G ...
https://man.mtool.work/django/6.1/releases/1.8.13.html
Django 1.9.6 リリースノート 10331
Django 1.9.6 リリースノート May 2, 2016 Django 1.9.6 では、1.9.5 にあったいくつかのバグを修正しました。 バグ修正 Added support for relative path redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no long ... er converts redirects to absolute URIs ( #26428 ). Fixed TimeField microseconds round-tripping on MySQL and SQLite ( #26498 ). Prevented makemigrations from generating infinite migrations f ...
https://man.mtool.work/django/6.1/releases/1.9.6.html
Django 4.2.3 リリースノート 9815
Django 4.2.3 リリースノート 2023年7月3日 Django 4.2.3 では、 4.2.2 における深刻度 "moderate" のセキュリティの問題1件と、いくつかのバグを修正しました。 CVE-2023-36053: EmailValidator / URLValidator における潜在的な正規表現によるサービス拒否攻 ... よるサービス拒否攻撃 (ReDoS) に晒される可能性がありました。 バグ修正 Django 4.2 で発生した、admin 画面における DateField と TimeField のタイムゾーン警告の配置が正しくなかったリグレッションを修正しました ( #34645 )。 Django 4.2 において、 ModelAdmin.list_ed ...
https://man.mtool.work/django/6.1/releases/4.2.3.html
Django 3.0.3 リリースノート 9033
Django 3.0.3 リリースノート 2020年2月3日 Django 3.0.3 では、セキュリティの問題1件と 3.0.2 におけるいくつかのバグを修正しました。 CVE-2020-7471: StringAgg(delimiter) を通じた潜在的 SQL インジェクション StringAgg 集計関数には、適切に加工された ... delimiter を使った SQL インジェクションが存在しました。 バグ修正 Subquery() アノテーションから DateField 、 DateTimeField 、あるいは TimeField を減算したときにクラッシュするという Django 3.0 のリグレッションを修正しました ( #31133 )。 クエリセッ ...
https://man.mtool.work/django/6.1/releases/3.0.3.html
フォーム フィールド 7984
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... カライズが無効になっている場合は DATE_INPUT_FORMATS から取得されます。また、 表示形式のローカライズ も参照してください。 DateTimeField class DateTimeField ( ** kwargs ) [ソース] デフォルトのウィジェット: DateTimeInput 空の値: None 正規化後の値: Python の da ... よう指示するブール値です。デフォルトは False です。 empty_value 「空」を表すのに使用する値です。デフォルトは空の文字列です。 TimeField class TimeField ( ** kwargs ) [ソース] デフォルトのウィジェット: TimeInput 空の値: None 正規化後の値: Python の datetime.t ... compress ( data_list ) [ソース] 有効な値のリストを受け取り、それらの値を単一の値に「圧縮」して返します。例えば、 SplitDateTimeField は時間フィールドと日付フィールドを組み合わせて datetime オブジェクトにするサブクラスです。 このメソッドはサブクラスで実装さ ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
Django 1.9 リリースノート 7717
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... etc.). For example: Entry.objects.filter(pub_date__month__gt=6) . Time lookups (hour, minute, second) are now supported by TimeField for all database backends. Support for backends other than SQLite was added but undocumented in Django 1.7. You can specif ... of the Avg aggregate in order to aggregate over non-numeric columns, such as DurationField . Added the date lookup to DateTimeField to allow querying the field by only the date portion. Added the Greatest and Least database functions. Added the Now datab ... es. The recommended way to add a time zone to datetime values fetched from the database is to register a converter for DateTimeField in DatabaseOperations.get_db_converters() . The needs_datetime_string_cast database feature was removed. Database backends ...
https://man.mtool.work/django/6.1/releases/1.9.html
モデルからフォームを作成する 7717
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... ィールドの max_length にセットされます。また null=True の場合 empty_value が None にセットされます。 DateField DateField DateTimeField DateTimeField DecimalField DecimalField DurationField DurationField EmailField EmailField FileField FileField FilePathFiel ... utoField フォーム上では表示されません。 SmallIntegerField IntegerField TextField CharField で widget=forms.Textarea です。 TimeField TimeField URLField URLField UUIDField UUIDField お気付きかもしれませんが、 ForeignKey と ManyToManyField の 2 つのモデルフ ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
モデルフィールドリファレンス 7201
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... な、データベースに直接アクセスできる人のために、フィールドをドキュメント化するのに便利です。例えば: pub_date = models . DateTimeField ( db_comment = "Date and time when the article was published" , ) db_default Field. db_default データベースによって計算され ... るこのフィールドのデフォルト値。これはリテラル値でも、 Now のようなデータベース関数でも構いません: created = models . DateTimeField ( db_default = Now ()) リテラルやデータベース関数から構成する限り、より複雑な式を使用できます: month_due = models . DateFi ... なぜなら unique がインデックスの作成を意味するからです。 unique_for_date Field. unique_for_date これを DateField または DateTimeField の名前に設定すると、このフィールドが日付フィールドの値に対して一意であることを要求します。 例えば、 title フィールドに uni ...
https://man.mtool.work/django/6.1/ref/models/fields.html
Django 1.11 リリースノート 7201
Django 1.11 リリースノート April 4, 2017 Django 1.11 へようこそ! このリリースノートでは、Django 1.10 および過去のバージョンからアップグレードする際に知っておくべきいくつかの 後方互換性のない変更 に加え、 新機能 を説明しています。 いくつかの ... support for time truncation to Trunc functions. Added the ExtractWeek function to extract the week from DateField and DateTimeField and exposed it through the week lookup. Added the TruncTime function to truncate DateTimeField to its time component and e ... クエンドで必要になる可能性のある変更について説明します。 The DatabaseOperations.time_trunc_sql() method is added to support TimeField truncation. It accepts a lookup_type and field_name arguments and returns the appropriate SQL to truncate the given time f ...
https://man.mtool.work/django/6.1/releases/1.11.html
PREV 1 2 NEXT