Changes between Version 110 and Version 111 of RemovingTheMagic


Ignore:
Timestamp:
04/24/2006 10:30:59 PM (9 years ago)
Author:
russellm
Comment:

Fixed incorrect reference in m2m field

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v110 v111  
    562562|| {{{article_obj.set_sites([s1.id, s2.id])}}}                   || {{{article_obj.sites.clear(); article_obj.sites.add(s1); article_obj.sites.add(s2)}}} ||
    563563|| {{{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()}}} ||
    565565
    566566Note 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.
Back to Top