Results of 1 - 1 of about 1 for Publications (0.001 sec.)
- 多対多 (many-to-many) 関係 — Django 4.0.6 ドキュメント 9414
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
headline = models . CharField ( max_length = 100 ) publications = models . ManyToManyField ( Publication ) class M ...
rmed using the Python API facilities. Create a few Publications : >>> p1 = Publication ( title = 'The Python Journ ...
with a Publication until it's been saved: >>> a1 . publications . add ( p1 ) Traceback (most recent call last): .. ...
ssociate the Article with a Publication : >>> a1 . publications . add ( p1 ) Create another Article , and set it t ...
-
https://man.plustar.jp/django/topics/db/examples/many_to_many.html
- [similar]
PREV
1
NEXT