per page, with , order by , clip by
Results of 1 - 10 of about 23 for uuid (0.004 sec.)
データベースのマイグレーションの作成方法 16002
データベースのマイグレーションの作成方法 このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成方法と書き方について説明します。マイグレーションに関する入門的な資料を探しているなら、 トピッ ... れ、これがユニーク制約に違反するためです。 そのため、次の手順を踏む必要があります。この例では、デフォルト値を持つ非 Null の UUIDField を追加します。必要に応じて、該当するフィールドを変更してください。 モデルに default=uuid.uuid4 と unique=True 引数を持 ... ルのうちの最初のファイル)から AddField オペレーションを最後のマイグレーションにコピーし、 AddField を AlterField に変更し、 uuid と models のインポートを追加します。例: 0006_remove_uuid_null.py # Generated by Django A.B on YYYY-MM-DD HH:MM from django ... .db import migrations , models import uuid class Migration ( migrations . Migration ): dependencies = [ ( "myapp" , "0005_populate_uuid_values" ), ] operations = [ m ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
PostgreSQL 固有のデータベース関数 9283
PostgreSQL 固有のデータベース関数 これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID class RandomUUID [ソース] バージョン 4 の UUID を返します。 使用例: >>> from django.contrib.postgres.functions ... import RandomUUID >>> Article . objects . update ( uuid = RandomUUID ()) Use django.db.models.functions.UUID4 instead. django.db.models.func ... tions.UUID4 is a cross-database version of this function. RandomUUID may be deprecated in the future. TransactionNow class Transactio ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
Django 5.0 リリースノート 8646
Django 5.0 リリースノート 2023年12月4日 Django 5.0 へようこそ! このリリースノートでは、 バージョン 5.0 の新機能 と、Django 4.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... されました。 QuerySet.aiterator() が以前の prefetch_related() 呼び出しをサポートするようになりました。 MariaDB 10.7 以降で、 UUIDField は CHAR(32) ではなく UUID カラムとして作成されます。詳細は、 MariaDB 10.7+ における既存の UUIDField のマイグレーション ... 前のフィールドを持つモデルは、ルックアップで create_defaults__exact を指定する必要があります。 MariaDB 10.7+ における既存の UUIDField のマイグレーション MariaDB 10.7以降では、 UUIDField は CHAR(32) カラムではなく UUID カラムとして作成されるようになりま ... した。その結果、Django < 5.0で作成された任意の UUIDField は、 CHAR(32) に基づく UUIDField サブクラスに置き換える必要があります: class Char32UUIDField ( models . UUIDField ): ...
https://man.mtool.work/django/6.1/releases/5.0.html
フォーム API 8478
フォーム API このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームについての概要 を読むことをおすすめします。 バインドされた (bound) フォームとバインドされていない ... hes its values. This is useful especially when dealing with callables whose return values can change (e.g. datetime.now or uuid.uuid4 ): >>> import uuid >>> class UUIDCommentForm ( CommentForm ): ... identifier = forms . UUIDField ( initial = uuid . ... uuid4 ) ... >>> f = UUIDCommentForm () >>> f . get_initial_for_field ( f . fields [ "identifier" ], "identifier" ) UUID('972ca9e4-7bfe-4f5b-af7d-07 ... b3aa306334') >>> f . get_initial_for_field ( f . fields [ "identifier" ], "identifier" ) UUID('1b411fab-844e-4dec-bd4f-e9b0495f04d0') >>> # Using BoundField.initial, for comparison >>> f [ "identifier" ] . initial UU ...
https://man.mtool.work/django/6.1/ref/forms/api.html
Django 2.0.4 リリースノート 8411
Django 2.0.4 リリースノート 2018年4月2日 Django 2.0.4 では、2.0.3 にあったいくつかのバグを修正しました。 バグ修正 Fixed a crash when filtering with an Exists() annotation of a queryset containing a single field ( #29195 ). Fixed admin autoc ... widget to add a space after custom classes ( #29221 ). Fixed PasswordResetConfirmView crash when using a user model with a UUIDField primary key and the reset URL contains an encoded primary key value that decodes to an invalid UUID ( #29206 ). Fixed ...
https://man.mtool.work/django/6.1/releases/2.0.4.html
モデルフィールドリファレンス 8328
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... json.JSONEncoder subclass to serialize data types not supported by the standard JSON serializer (e.g. datetime.datetime or UUID ). For example, you can use the DjangoJSONEncoder class. デフォルトは json.JSONEncoder です。 JSONField. decoder An option ... スと同じく、 URLField は省略可能な max_length 引数を取ります。 max_length を指定しない場合、デフォルトの 200 が使われます。 UUIDField class UUIDField ( ** options ) [ソース] A field for storing universally unique identifiers. Uses Python's UUID class. ... When used on PostgreSQL and MariaDB, this stores in a uuid datatype, otherwise in a char(32) . UUID は primary_key に代わる AutoField への良い選択肢です。 データベースはあなたのため ...
https://man.mtool.work/django/6.1/ref/models/fields.html
Django 1.11.10 リリースノート 8244
Django 1.11.10 リリースノート 2018年2月1日 Django 1.11.10 では、1.11.9 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationF ... if an authentication backend doesn't accept request and a later one does ( #29071 ). Fixed crash when entering an invalid uuid in ModelAdmin.raw_id_fields ( #29094 ). ...
https://man.mtool.work/django/6.1/releases/1.11.10.html
Django 2.0.2 リリースノート 8160
Django 2.0.2 リリースノート 2018年2月1日 Django 2.0.2 では、2.0.1 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationForm r ... ations crashes if a migrations directory doesn't have an __init__.py file ( #29091 ). Fixed crash when entering an invalid uuid in ModelAdmin.raw_id_fields ( #29094 ). ...
https://man.mtool.work/django/6.1/releases/2.0.2.html
Django 1.8.1 リリースノート 8093
Django 1.8.1 リリースノート May 1, 2015 Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the migrations framework. バグ修正 Added support for serializing timedelta objects in migrations ( #24566 ). Restored proper p ... arbitrary file inclusions in admindocs ( #24625 ). Fixed a crash with QuerySet.update() on foreign keys to instances with uuid primary keys ( #24611 ). Fixed database introspection with SQLite 3.8.9 (released April 8, 2015) ( #24637 ). Updated urlpa ...
https://man.mtool.work/django/6.1/releases/1.8.1.html
Django 5.2.18 release notes 8009
Django 5.2.18 release notes October 6, 2026 Django 5.2.18 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 5.2.17. It also fixes one ... form, such as with: a OneToOneField (or parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key were not affected. This issue ...
https://man.mtool.work/django/6.1/releases/5.2.18.html
PREV 1 2 3 NEXT