per page, with , order by , clip by
Results of 1 - 2 of about 2 for Oxygen (0.001 sec.)
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 11228
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... ication: Science News>]> キーワードを使った反対側の端からの追加: >>> new_article = p2 . article_set . create ( headline = "Oxygen-free diet works wonders" ) >>> p2 . article_set . all () <QuerySet [<Article: NASA finds intelligent life on Earth>, <Arti ... cle: Oxygen-free diet works wonders>]> >>> a5 = p2 . article_set . all ()[ 1 ] >>> a5 . publications . all () <QuerySet [<Publication: ... icle から Publication を削除する: >>> a4 . publications . remove ( p2 ) >>> p2 . article_set . all () <QuerySet [<Article: Oxygen-free diet works wonders>]> >>> a4 . publications . all () <QuerySet []> 反対側からも: >>> p2 . article_set . remove ( a5 ) ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 7485
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... ication: Science News>]> キーワードを使った反対側の端からの追加: >>> new_article = p2 . article_set . create ( headline = "Oxygen-free diet works wonders" ) >>> p2 . article_set . all () <QuerySet [<Article: NASA finds intelligent life on Earth>, <Arti ... cle: Oxygen-free diet works wonders>]> >>> a5 = p2 . article_set . all ()[ 1 ] >>> a5 . publications . all () <QuerySet [<Publication: ... icle から Publication を削除する: >>> a4 . publications . remove ( p2 ) >>> p2 . article_set . all () <QuerySet [<Article: Oxygen-free diet works wonders>]> >>> a4 . publications . all () <QuerySet []> 反対側からも: >>> p2 . article_set . remove ( a5 ) ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
PREV 1 NEXT