per page, with , order by , clip by
Results of 1 - 10 of about 22 for Cast (0.004 sec.)
Porting your apps from Django 0.96 to 1.0 12861
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... _extract_sql connection.ops.date_extract_sql backend.get_date_trunc_sql connection.ops.date_trunc_sql backend.get_datetime_cast_sql connection.ops.datetime_cast_sql backend.get_deferrable_sql connection.ops.deferrable_sql backend.get_drop_foreignkey_ ... backend.quote_name connection.ops.quote_name backend.get_query_set_class connection.ops.query_set_class backend.get_field_cast_sql connection.ops.field_cast_sql backend.get_drop_sequence connection.ops.drop_sequence_sql backend.OPERATOR_MAPPING conn ... _unique_and_pk backend.autoindexes_primary_keys connection.features.autoindexes_primary_keys backend.needs_datetime_string_cast connection.features.needs_datetime_string_cast backend.needs_upper_for_iops connection.features.needs_upper_for_iops backe ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
GeoDjango モデル API 11262
GeoDjango モデル API This document explores the details of the GeoDjango Model API. Throughout this section, we'll be using the following geographic model of a ZIP code and of a Digital Elevation Model as our examples: from django.contrib.g ... s coveredby covers intersects 入力としてジオグラフィ型をサポートしていない空間ルックアップや集計を使用する必要がある場合、 Cast データベース関数を使用して、クエリの中でジオグラフィカラムをジオメトリ型に変換できます: from django.contrib.gis.db.models ... import PointField from django.db.models.functions import Cast Zipcode . objects . annotate ( geom = Cast ( "geography_field" , PointField ())) . filter ( geom__within = poly ) For more ...
https://man.mtool.work/django/6.1/ref/contrib/gis/model-api.html
Django 1.11.8 リリースノート 10302
Django 1.11.8 リリースノート December 2, 2017 Django 1.11.8 fixes several bugs in 1.11.7. バグ修正 Reallowed, following a regression in Django 1.10, AuthenticationForm to raise the inactive user error when using ModelBackend ( #28645 ). Add ... ses nulls_first or nulls_last ( #28848 ). Made query lookups for CICharField , CIEmailField , and CITextField use a citext cast ( #28702 ). Fixed a regression in caching of a GenericForeignKey when the referenced model instance uses multi-table inher ...
https://man.mtool.work/django/6.1/releases/1.11.8.html
データベース関数 9679
データベース関数 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 ... e を許可することはお勧めしません。なぜなら、これはフィールドに2つの "空の値 "を持たせてしまうからです。 比較および変換関数 Cast class Cast ( expression , output_field ) [ソース] 式 expression の結果の型を output_field の型に強制的に変更します。 使用例 ... : >>> from django.db.models import FloatField >>> from django.db.models.functions import Cast >>> Author . objects . create ( age = 25 , name = "Margaret Smith" ) >>> author = Author . objects . annotate ( ... age_as ... _float = Cast ( "age" , output_field = FloatField ()), ... ) . get () >>> print ( author . age_as_float ) 25.0 Coalesce class Coalesce ( ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Django 2.0 リリースノート 9679
Django 2.0 リリースノート December 2, 2017 Django 2.0 へようこそ! このリリースノートでは、 バージョン 2.0 の新機能 と、Django 1.11 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... は、サードパーティのデータベースバックエンドで必要になる可能性のある変更について説明します。 The DatabaseOperations.datetime_cast_date_sql() , datetime_cast_time_sql() , datetime_trunc_sql() , datetime_extract_sql() , and date_interval_sql() methods no ... s_start_end() and/or window_start_range_start_end() methods. Third-party database backends should add a DatabaseOperations.cast_char_field_without_max_length attribute with the database data type that will be used in the Cast function for a CharField ...
https://man.mtool.work/django/6.1/releases/2.0.html
Django 5.0 リリースノート 9679
Django 5.0 リリースノート 2023年12月4日 Django 5.0 へようこそ! このリリースノートでは、 バージョン 5.0 の新機能 と、Django 4.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... した。 cx_Oracle のサポートは非推奨となり、代わりに oracledb 1.3.2+ Python ドライバが推奨されます。 DatabaseOperations.field_cast_sql() は DatabaseOperations.lookup_cast() に置き換えられました。Django 6.0 からは、 BuiltinLookup.process_lhs() は field_c ... ast_sql() を呼び出さなくなります。サードパーティ製のデータベースバックエンドは、代わりに lookup_cast() を実装すべきです。 django.db.models.enums.ChoicesMeta メタクラスは ChoicesType に名前が変更されました。 Prefetch.get_cur ...
https://man.mtool.work/django/6.1/releases/5.0.html
Django 1.0.2 リリースノート 9359
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 ... template rendering) can now be assigned to model attributes 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 improvemen ...
https://man.mtool.work/django/6.1/releases/1.0.2.html
Django 1.11.2 リリースノート 9359
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ... crash on Python 2 if the InvalidPage message contains non-ASCII ( #28204 ). Prevented Subquery from adding an unnecessary CAST which resulted in invalid SQL ( #28199 ). Corrected detection of GDAL 2.1 on Windows ( #28181 ). Made date-based generic v ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
Django 4.1 リリースノート 9359
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... on_state() method must call super() in order for the check to run. フォーム The default template used to render forms when cast to a string, e.g. in templates as {{ form }} , is now configurable at the project-level by setting form_template_name on t ... sql, params, tzname) DatabaseOperations.time_trunc_sql(lookup_type, sql, params, tzname=None) DatabaseOperations.datetime_cast_date_sql(sql, params, tzname) DatabaseOperations.datetime_cast_time_sql(sql, params, tzname) django.contrib.gis Support fo ...
https://man.mtool.work/django/6.1/releases/4.1.html
Django 1.9 リリースノート 8720
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... atabase is to register a converter for DateTimeField in DatabaseOperations.get_db_converters() . The needs_datetime_string_cast database feature was removed. Database backends that set it must register a converter instead, as explained above. The Dat ... ) methods. To use the new date lookup, third-party database backends may need to implement the DatabaseOperations.datetime_cast_date_sql() method. The DatabaseOperations.time_extract_sql() method was added. It calls the existing date_extract_sql() me ... (hour, minute, second) to TimeField , and may be needed by third-party database backends. The DatabaseOperations.datetime_cast_sql() method (not to be confused with DatabaseOperations.datetime_cast_date_sql() mentioned above) has been removed. This ...
https://man.mtool.work/django/6.1/releases/1.9.html
PREV 1 2 3 NEXT