検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 67 for unique (0.015 sec.)
Constraints reference — Django 4.0.6 ドキュメント 14695
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... in abstract base classes You must always specify a unique name for the constraint. As such, you cannot norma ... you'll get a database integrity error on save() . UniqueConstraint s without a condition (i.e. non-partial ... constraints) and expressions (i.e. non-functional unique constraints) are different in this regard, in that ... they leverage the existing validate_unique() logic, and thus enable two-stage validation. In ...
https://man.plustar.jp/django/ref/models/constraints.html - [similar]
SchemaEditor — Django 4.0.6 ドキュメント 11210
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... he database for the provided model, along with any unique constraints or indexes it requires. delete_model() ... s the model's table in the database along with any unique constraints or indexes it has. add_index() ¶ BaseD ... ) ¶ Removes constraint from model 's table. alter_unique_together() ¶ BaseDatabaseSchemaEditor. alter_uniqu ... e_together ( model , old_unique_together , new_unique_together ) ¶ Changes a model ...
https://man.plustar.jp/django/ref/schema-editor.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 10954
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... context and hints applicable to the message, and a unique identifier that is used for filtering purposes. Co ... result precedes the message. id Optional string. A unique identifier for the issue. Identifiers should follo ... can be allocated by the application, but should be unique within that application. There are subclasses to m ... rformed: mysql.E001 : MySQL/MariaDB does not allow unique CharField s to have a max_length > 255. This check ...
https://man.plustar.jp/django/ref/checks.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 10086
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... NULL . One exception is when a CharField has both unique=True and blank=True set. In this situation, null=T ... rue is required to avoid unique constraint violations when saving multiple objects ... mber names as they would conflict. The use of enum.unique() is enforced to ensure that values cannot be defi ... include null , blank , invalid , invalid_choice , unique , and unique_for_date . Additional error message k ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Model Meta options — Django 4.0.6 ドキュメント 9958
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... y_name . As the reverse name for a field should be unique, be careful if you intend to subclass your model. ... ranteed only when ordering by a set of fields that uniquely identify each object in the results. For example ... , if a name field isn't unique, ordering by it won't guarantee objects with the s ... s = [ 'first_name' ], name = 'first_name_idx' ), ] unique_together ¶ Options. unique_together ¶ Use UniqueCo ...
https://man.plustar.jp/django/ref/models/options.html - [similar]
How to create database migrations — Django 4.0.6 ドキュメント 9332
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... reusable and third-party apps. Migrations that add unique fields ¶ Applying a "plain" migration that adds a ... ing rows is generated only once, thus breaking the unique constraint. Therefore, the following steps should ... he field on your model with default=uuid.uuid4 and unique=True arguments (choose an appropriate default for ... ld = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ] 最初の移行ファイルを編集します。 生 ...
https://man.plustar.jp/django/howto/writing-migrations.html - [similar]
Django 1.8.9 リリースノート — Django 4.0.6 ドキュメント 8592
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... rations on PostgreSQL when adding db_index=True or unique=True to a CharField or TextField that already had ... of them from a field that had both, or when adding unique=True to a field already listed in unique_together ... 関連キーワード Fixed , when , regression , using , unique , crash , had , already , from , incorrect クイック ...
https://man.plustar.jp/django/releases/1.8.9.html - [similar]
PostgreSQL specific model indexes — Django 4.0.6 ドキュメント 7838
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s that can be used to define functional indexes or unique constraints. To use it, you need to add 'django.co ... ame') using varchar_pattern_ops . Another example: UniqueConstraint ( OpClass ( Upper ( 'description' ), nam ... = 'text_pattern_ops' ), name = 'upper_description_unique' , ) creates a unique constraint on Upper('descrip ... ps . Changed in Django 4.0: Support for functional unique constraints was added. 目次 PostgreSQL specific mo ...
https://man.plustar.jp/django/ref/contrib/postgres/indexes.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 7596
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... django.db.models import Exists , OuterRef >>> non_unique_account_type = Client . objects . filter ( ... acc ... 'pk' )) . values ( 'pk' ) >>> When ( Exists ( non_unique_account_type ), then = Value ( 'non unique' )) >>> ... ut you can still use it to filter results: >>> non_unique_account_type = Client . objects . filter ( ... acc ... ' ) >>> Client . objects . filter ( ~ Exists ( non_unique_account_type )) SQL文では、次のように評価されます: ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
Django 4.0 release notes — Django 4.0.6 ドキュメント 7596
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nded if you need a gradual update path. Functional unique constraints ¶ The new *expressions positional argu ... ment of UniqueConstraint() enables creating functional unique con ... ango.db import models from django.db.models import UniqueConstraint from django.db.models.functions import L ... ( max_length = 255 ) class Meta : constraints = [ UniqueConstraint ( Lower ( 'first_name' ), Lower ( 'last_ ...
https://man.plustar.jp/django/releases/4.0.html - [similar]
PREV 1 2 3 4 5 6 7 NEXT