検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 60 for pk (0.023 sec.)
Django オブジェクトのシリアル化 — Django 4.0.6 ドキュメント 13582
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lized. The primary key is always serialized as the pk element in the resulting output; it never appears ... ブジェクトはデータベースに保存されます。 注釈 If the pk attribute in the serialized data doesn't exist or ... g="utf-8"?> <django-objects version="1.0"> <object pk="123" model="sessions.session"> <field type="DateT ... > -elements. Each such object has two attributes: "pk" and "model", the latter being represented by the ...
https://man.plustar.jp/django/topics/serialization.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 11633
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t Blog , Entry >>> entry = Entry . objects . get ( pk = 1 ) >>> cheese_blog = Blog . objects . get ( nam ... 返されます。 >>> one_entry = Entry . objects . get ( pk = 1 ) filter() と同じように、 get() には任意のクエ ... tal_comments = Sum ( 'number_of_comments' ), ... ) pk ルックアップショートカット ¶ 利便性のために、Djang ... o は pk ルックアップショートカットを用意しています。pk とは ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 10397
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e = OuterRef ( 'account_type' ), ... ) . exclude ( pk = OuterRef ( 'pk' )) . values ( 'pk' ) >>> When ( ... ent . objects . aggregate ( ... regular = Count ( 'pk' , filter = Q ( account_type = Client . REGULAR )) ... , ... gold = Count ( 'pk' , filter = Q ( account_type = Client . GOLD )), . ... .. platinum = Count ( 'pk' , filter = Q ( account_type = Client . PLATINUM ) ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
Single object mixins — Django 4.0.6 ドキュメント 10179
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... す。デフォルトでは、 slug_url_kwarg は 'slug' です。 pk_url_kwarg ¶ プライマリキーを含む URLConf キーワード ... 引数の名前です。デフォルトでは、 pk_url_kwarg は 'pk' です。 context_object_name ¶ Des ... name of the variable to use in the context. query_pk_and_slug ¶ True の場合、 get_object() がルックアッ ... prevented from obtaining this list, setting query_pk_and_slug to True will help prevent the guessing of ...
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html - [similar]
クラスベース汎用ビュー - フラットインデックス — Django 4.0.6 ドキュメント 10077
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ect_name() ] extra_context http_method_names model pk_url_kwarg query_pk_and_slug queryset [ get_queryse ... http_method_names initial [ get_initial() ] model pk_url_kwarg prefix [ get_prefix() ] query_pk_and_slu ... http_method_names initial [ get_initial() ] model pk_url_kwarg prefix [ get_prefix() ] query_pk_and_slu ... ect_name() ] extra_context http_method_names model pk_url_kwarg query_pk_and_slug queryset [ get_queryse ...
https://man.plustar.jp/django/ref/class-based-views/flattened-index.html - [similar]
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 9045
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ): return reverse ( 'author-detail' , kwargs = { 'pk' : self . pk }) そうしたら、 CreateView およびその ... iew (), name = 'author-add' ), path ( 'author/<int:pk>/' , AuthorUpdateView . as_view (), name = 'author ... -update' ), path ( 'author/<int:pk>/delete/' , AuthorDeleteView . as_view (), name = ... ( 'text/html' ): return response else : data = { 'pk' : self . object . pk , } return JsonResponse ( da ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 8841
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... on_id ): question = get_object_or_404 ( Question , pk = question_id ) try : selected_choice = question . ... choice_set . get ( pk = request . POST [ 'choice' ]) except ( KeyError , ... on_id ): question = get_object_or_404 ( Question , pk = question_id ) return render ( request , 'polls/r ... xView . as_view (), name = 'index' ), path ( '<int:pk>/' , views . DetailView . as_view (), name = 'deta ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 8841
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... しています(このメソッドでは URLConfで宣言されている pk および slug キーワード引数を検索し、ビューの model ... Redirect ( reverse ( 'author-detail' , kwargs = { 'pk' : self . object . pk })) In practice you'd probab ... erestView urlpatterns = [ #... path ( 'author/<int:pk>/interest/' , RecordInterestView . as_view (), nam ... e = 'author-interest' ), ] Note the pk named group, which get_object() uses to look up th ...
https://man.plustar.jp/django/topics/class-based-views/mixins.html - [similar]
How to provide initial data for models — Django 4.0.6 ドキュメント 8638
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... look like in JSON: [ { "model" : "myapp.person" , "pk" : 1 , "fields" : { "first_name" : "John" , "last_ ... ame" : "Lennon" } }, { "model" : "myapp.person" , "pk" : 2 , "fields" : { "first_name" : "Paul" , "last_ ... チャだと以下のようになります: - model : myapp.person pk : 1 fields : first_name : John last_name : Lennon ... - model : myapp.person pk : 2 fields : first_name : Paul last_name : McCartn ...
https://man.plustar.jp/django/howto/initial-data.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 8230
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... w ( request ): obj = get_object_or_404 ( MyModel , pk = 1 ) This example is equivalent to: from django.h ... ( request ): try : obj = MyModel . objects . get ( pk = 1 ) except MyModel . DoesNotExist : raise Http40 ... _startswith = 'M' ) get_object_or_404 ( queryset , pk = 1 ) The above example is a bit contrived since i ... t_object_or_404 ( Book , title__startswith = 'M' , pk = 1 ) but it can be useful if you are passed the q ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
PREV 1 2 3 4 5 6 NEXT