Changes between Version 110 and Version 111 of RemovingTheMagic
- Timestamp:
- Apr 24, 2006, 10:30:59 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v110 v111 562 562 || {{{article_obj.set_sites([s1.id, s2.id])}}} || {{{article_obj.sites.clear(); article_obj.sites.add(s1); article_obj.sites.add(s2)}}} || 563 563 || {{{article_obj.set_sites([s1.id]) # deletion}}} || {{{article_obj.sites.remove(s2)}}} || 564 || {{{site_obj.get_ reporter_list()}}} || {{{site_obj.reporter_set.all()}}} ||564 || {{{site_obj.get_article_list()}}} || {{{site_obj.article_set.all()}}} || 565 565 566 566 Note that related-object lookup uses the default manager of the related object, which means the API for accessing related objects is completely consistent with the API for accessing objects via a manager.