Results of 51 - 60 of about 195 for Object (0.072 sec.)
- Djangoソースコードレポジトリ — Django 4.0.6 ドキュメント 5448
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
t : Added support for Oracle databases to Django's object-relational mapper. This has been part of Django si ...
support for geographic/spatial queries to Django's object-relational mapper. This has been part of Django si ...
of both the internals and public APIs of Django's object-relational mapper. This has been part of Django si ...
actor : A refactoring of the internals of Django's object-relational mapper. This became part of Django as o ...
-
https://man.plustar.jp/django/internals/git.html
- [similar]
- マネージャ — Django 4.0.6 ドキュメント 5448
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ます。 マネージャの名前 ¶ デフォルトでは、Django は objects という名前の Manager を各 Django モデルクラスに対 ...
して追加します。しかし、もし objects をフィールド名として使いたい場合や、あるいは、 Ma ...
nager に対して objects 以外の名前を使いたい場合には、各モデル単位で好きな ...
models . Manager () このモデル例を使うと、 Person.objects は AttributeError 例外を起こしますが、 Person.peo ...
-
https://man.plustar.jp/django/topics/db/managers.html
- [similar]
- Django 2.2.2 リリースノート — Django 4.0.6 ドキュメント 5415
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source obje ...
ble __proto__ property, it could extend the native Object.prototype . The bundled version of jQuery used by ...
-
https://man.plustar.jp/django/releases/2.2.2.html
- [similar]
- 多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 5415
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
<Reporter: John Smith> Note that you must save an object before it can be assigned to a foreign key relatio ...
mith' , email = 'john@example.com' ) >>> Article . objects . create ( headline = "This is a test" , pub_date ...
ibited to prevent data loss due to unsaved related object 'reporter'. Article objects have access to their r ...
elated Reporter objects: >>> r = a . reporter Create an Article via the R ...
-
https://man.plustar.jp/django/topics/db/examples/many_to_one.html
- [similar]
- 一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 5415
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
2 . save () Create a Restaurant. Pass the "parent" object as this object's primary key: >>> r = Restaurant ( ...
restaurant: >>> from django.core.exceptions import ObjectDoesNotExist >>> try : >>> p2 . restaurant >>> exce ...
pt ObjectDoesNotExist : >>> print ( "There is no restaurant ...
on Dogs the restaurant> Note that you must save an object before it can be assigned to a one-to-one relation ...
-
https://man.plustar.jp/django/topics/db/examples/one_to_one.html
- [similar]
- クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 5383
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
られた場合には、そのモデルクラスが使用されます。 get_object() がオブジェクトを帰す場合には、そのオブジェクトの ...
ew - they will use get_absolute_url() on the model object if available. If you want to use a custom ModelFor ...
author-delete' ), ] 注釈 These views inherit SingleObjectTemplateResponseMixin which uses template_name_suff ...
d request.user ¶ To track the user that created an object using a CreateView , you can use a custom ModelFor ...
-
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html
- [similar]
- はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 5339
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
が呼び出されます。 detail ( request =< HttpRequest object > , question_id = 34 ) The question_id=34 part com ...
dex ( request ): latest_question_list = Question . objects . order_by ( '-pub_date' )[: 5 ] output = ', ' . ...
dex ( request ): latest_question_list = Question . objects . order_by ( '-pub_date' )[: 5 ] template = loade ...
dex ( request ): latest_question_list = Question . objects . order_by ( '-pub_date' )[: 5 ] context = { 'lat ...
-
https://man.plustar.jp/django/intro/tutorial03.html
- [similar]
- はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 5339
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
pResponseRedirect from django.shortcuts import get_object_or_404 , render from django.urls import reverse fr ...
def vote ( request , question_id ): question = get_object_or_404 ( Question , pk = question_id ) try : selec ...
polls/views.py ¶ from django.shortcuts import get_object_or_404 , render def results ( request , question_i ...
d ): question = get_object_or_404 ( Question , pk = question_id ) return rend ...
-
https://man.plustar.jp/django/intro/tutorial04.html
- [similar]
- Admin actions — Django 4.0.6 ドキュメント 5339
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tions" -- functions that get called with a list of objects selected on the change list page. If you look at ...
re in action; Django ships with a "delete selected objects" action available to all models. For example, her ...
kground on bulk deletion, see the documentation on object deletion . Read on to find out how to add your own ...
function won't need the ModelAdmin or the request object, but we will use the queryset: def make_published ...
-
https://man.plustar.jp/django/ref/contrib/admin/actions.html
- [similar]
- The flatpages app — Django 4.0.6 ドキュメント 5339
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
admin interface and a Python API. A flatpage is a object with a URL, title and content. Use it for one-off, ...
context variable, flatpage , which is the flatpage object. It uses RequestContext in rendering the template. ...
n index page. Edit flatpages as you edit any other object in the system. The FlatPage model has an enable_co ...
trib/flatpages/models.py . You can access flatpage objects via the Django database API . Check for duplicate ...
-
https://man.plustar.jp/django/ref/contrib/flatpages.html
- [similar]