per page, with , order by , clip by
Results of 1 - 10 of about 49 for DateField (0.007 sec.)
データベース関数 12994
データベース関数 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 ... のモデルを使用します: class Experiment ( models . Model ): start_datetime = models . DateTimeField () start_date = models . DateField ( null = True , blank = True ) start_time = models . TimeField ( null = True , blank = True ) end_datetime = models . Date ... TimeField ( null = True , blank = True ) end_date = models . DateField ( null = True , blank = True ) end_time = models . TimeField ( null = True , blank = True ) Extract class Extract ( expres ... sion , lookup_name = None , tzinfo = None , ** extra ) [ソース] 日時の構成要素を数値として取り出します。 DateField , DateTimeField , TimeField または DurationField を表す expression と、 lookup_name を受け取り、 lookup_name が参照する日付 ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
モデルフィールドリファレンス 12994
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... ), (3, 'Third')] もし int や str 以外の具象データ型のサポートが必要であれば、 Choices と必要な具象データ型、例えば date を DateField で使用するようにサブクラス化できます: class MoonLandings ( datetime . date , models . Choices ): APOLLO_11 = 1969 , 7 , 20 ... eField ( db_default = Now ()) リテラルやデータベース関数から構成する限り、より複雑な式を使用できます: month_due = models . DateField ( db_default = TruncMonth ( Now () + timedelta ( days = 90 ), output_field = models . DateField (), ) ) データベースのデフ ... 、 db_index を指定する必要はないことに注意してください。なぜなら unique がインデックスの作成を意味するからです。 unique_for_date Field. unique_for_date これを DateField または DateTimeField の名前に設定すると、このフィールドが日付フィールドの値に対して一意 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
ウィジェット 11455
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... ES = { "blue" : "Blue" , "green" : "Green" , "black" : "Black" , } class SimpleForm ( forms . Form ): birth_year = forms . DateField ( widget = forms . SelectDateWidget ( years = BIRTH_YEAR_CHOICES ) ) favorite_colors = forms . MultipleChoiceField ( requi ... を日、月、年とともに日付を表示するためにサブクラス化するウィジェットの例です。このウィジェットは MultiValueField ではなく DateField とともに使われることを意図しています。そして、 value_from_datadict() が実行されています: from datetime import date from dj ... rom_datadict ( self , data , files , name ): day , month , year = super () . value_from_datadict ( data , files , name ) # DateField expects a single string that it can parse into a date. return " {} - {} - {} " . format ( year , month , day ) コンストラク ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
Django 1.10.6 リリースノート 9659
Django 1.10.6 リリースノート March 1, 2017 Django 1.10.6 fixes several bugs in 1.10.5. バグ修正 Fixed ClearableFileInput 's "Clear" checkbox on model form fields where the model field has a default ( #27805 ). Fixed RequestDataTooBig and To ... ad request response ( #27820 ). Fixed a crash on Oracle and PostgreSQL when subtracting DurationField or IntegerField from DateField ( #27828 ). Fixed query expression date subtraction accuracy on PostgreSQL for differences larger than a month ( #27856 ). ...
https://man.mtool.work/django/6.1/releases/1.10.6.html
ルックアップ API リファレンス 9146
ルックアップ API リファレンス このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンスがあります。ルックアップの 使い方 については クエリを作成する を、新しいルックアップの 作り方 ... ookup , lookup_name = None ) クラスまたはクラスのインスタンスに新しいルックアップを登録します。たとえば、次のようにします: DateField . register_lookup ( YearExact ) User . _meta . get_field ( "date_joined" ) . register_lookup ( MonthExact ) このコードは D ... せん。 Transform リファレンス class Transform [ソース] Transform はフィールドの変換を実装するための汎用クラスです。主な例は DateField を IntegerField に変換する __year です。 ルックアップ式で Transform を使用する場合の表記は <expression>__<transformation> ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
Django 3.0.4 リリースノート 8889
Django 3.0.4 リリースノート March 4, 2020 Django 3.0.4では、3.0.3にあったセキュリティの問題といくつかのバグを修正しました。 CVE-2020-9402: Potential SQL injection via tolerance parameter in GIS functions and aggregates on Oracle GIS functio ... on Oracle ( #31271 ). Fixed a regression in Django 3.0.3 that caused misplacing parameters of SQL queries when subtracting DateField or DateTimeField expressions on MySQL ( #31312 ). Fixed a regression in Django 3.0 that didn't include subqueries spanning ...
https://man.mtool.work/django/6.1/releases/3.0.4.html
Django 4.2.3 リリースノート 8889
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 において、 Model ...
https://man.mtool.work/django/6.1/releases/4.2.3.html
モデルからフォームを作成する 8889
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... max_length はモデルフィールドの max_length にセットされます。また null=True の場合 empty_value が None にセットされます。 DateField DateField DateTimeField DateTimeField DecimalField DecimalField DurationField DurationField EmailField EmailField FileFiel ... arField ( max_length = 100 ) title = models . CharField ( max_length = 3 , choices = TITLE_CHOICES ) birth_date = models . DateField ( blank = True , null = True ) def __str__ ( self ): return self . name class Book ( models . Model ): name = models . Cha ... ) title = forms . CharField ( max_length = 3 , widget = forms . Select ( choices = TITLE_CHOICES ), ) birth_date = forms . DateField ( required = False ) class BookForm ( forms . Form ): name = forms . CharField ( max_length = 100 ) authors = forms . Mode ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
Django 1.0.2 リリースノート 8376
Django 1.0.2 リリースノート Django 1.0.2 へようこそ! This is the second "bugfix" release in the Django 1.0 series, improving the stability and performance of the Django 1.0 codebase. As such, Django 1.0.2 contains no new features (and, purs ... es and saved to MySQL without requiring an explicit intermediate cast to unicode . A bug affecting filtering on a nullable DateField in SQLite has been resolved. Several updates and improvements have been made to Django's documentation. ...
https://man.mtool.work/django/6.1/releases/1.0.2.html
Django 3.0.3 リリースノート 8119
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 のリグレッションを修正しました ( #31 ...
https://man.mtool.work/django/6.1/releases/3.0.3.html
PREV 1 2 3 4 5 NEXT