Results of 21 - 30 of about 60 for pk (0.050 sec.)
- Django 1.8 リリースノート — Django 4.0.6 ドキュメント 7198
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
pects the SITE_ID setting (instead of always using pk=1 ). キャッシュ ¶ The incr() method of the django. ...
g get_ordering() . The new SingleObjectMixin.query_pk_and_slug attribute allows changing the behavior of ...
rial in Django 1.8: >>> p = Poll . objects . get ( pk = 1 ) >>> p . _meta . get_all_related_objects () [ ...
d'] has been changed from '%(model)s instance with pk %(pk)r does not exist.' to '%(model)s instance wit ...
-
https://man.plustar.jp/django/releases/1.8.html
- [similar]
- 一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 7198
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
estaurant> >>> Restaurant . objects . get ( place__pk = 1 ) <Restaurant: Demon Dogs the restaurant> >>> ...
also works in reverse: >>> Place . objects . get ( pk = 1 ) <Place: Demon Dogs the place> >>> Place . ob ...
-
https://man.plustar.jp/django/topics/db/examples/one_to_one.html
- [similar]
- Form fields — Django 4.0.6 ドキュメント 7096
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
d_field1" name = "field1" > < option value = "obj1.pk" > Object1 </ option > < option value = "obj2.pk" ...
required , invalid_list , invalid_choice , invalid_pk_value The invalid_choice message may contain %(val ...
ue)s and the invalid_pk_value message may contain %(pk)s , which will be s ...
-
https://man.plustar.jp/django/ref/forms/fields.html
- [similar]
- Generic date ビュー — Django 4.0.6 ドキュメント 6994
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
): return reverse ( 'article-detail' , kwargs = { 'pk' : self . pk }) ArchiveIndexView ¶ class ArchiveIn ...
= [ path ( '<int:year>/<str:month>/<int:day>/<int:pk>/' , DateDetailView . as_view ( model = Article , ...
-
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html
- [similar]
- 多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 6994
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
icitly: >>> Article . objects . filter ( reporter__pk = 1 ) <QuerySet [<Article: John's second story>, < ...
ection: >>> Reporter . objects . filter ( article__pk = 1 ) <QuerySet [<Reporter: John Smith>]> >>> Repo ...
-
https://man.plustar.jp/django/topics/db/examples/many_to_one.html
- [similar]
- PostgreSQL specific query expressions — Django 4.0.6 ドキュメント 6893
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s = Book . objects . filter ( author = OuterRef ( 'pk' )) . values ( ... json = JSONObject ( title = 'ti ...
-
https://man.plustar.jp/django/ref/contrib/postgres/expressions.html
- [similar]
- Generic editing ビュー — Django 4.0.6 ドキュメント 6776
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
): return reverse ( 'author-detail' , kwargs = { 'pk' : self . pk }) FormView ¶ class django.views.gene ...
-
https://man.plustar.jp/django/ref/class-based-views/generic-editing.html
- [similar]
- GeoJSON Serializer — Django 4.0.6 ドキュメント 6776
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
er is not specified, the geojson serializer adds a pk key to the properties dictionary with the primary ...
-
https://man.plustar.jp/django/ref/contrib/gis/serializers.html
- [similar]
- ビルトインのクラスベースのジェネリックビュー — Django 4.0.6 ドキュメント 6776
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tailView urlpatterns = [ #... path ( 'authors/<int:pk>/' , AuthorDetailView . as_view (), name = 'author ...
() obj . save () return obj 注釈 ここで URLconf は pk という名前のキャプチャグループを使っています。この ...
want to call the group something else, you can set pk_url_kwarg on the view. 目次 ビルトインのクラスベー ...
-
https://man.plustar.jp/django/topics/class-based-views/generic-display.html
- [similar]
- Advanced testing topics — Django 4.0.6 ドキュメント 6776
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
TestCase ): reset_sequences = True def test_animal_pk ( self ): lion = Animal . objects . create ( name ...
= "lion" , sound = "roar" ) # lion.pk is guaranteed to always be 1 self . assertEqual ( ...
lion . pk , 1 ) Unless you are explicitly testing primary ke ...
-
https://man.plustar.jp/django/topics/testing/advanced.html
- [similar]