Changes between Version 109 and Version 110 of RemovingTheMagic


Ignore:
Timestamp:
Apr 24, 2006, 6:50:48 PM (19 years ago)
Author:
Russell Keith-Magee
Comment:

Fixed syntax for creating members of m2m/o2m sets.

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v109 v110  
    555555|| {{{reporter_obj.get_article_list(headline__exact='Hello')}}}  || {{{reporter_obj.article_set.filter(headline='Hello')}}} ||
    556556|| {{{reporter_obj.get_article_count()}}}                        || {{{reporter_obj.article_set.count()}}} ||
    557 || {{{reporter_obj.add_article(headline='Foo')}}}                || {{{reporter_obj.article_set.add(headline='Foo')}}} ||
     557|| {{{reporter_obj.add_article(headline='Foo')}}}                || {{{reporter_obj.article_set.create(headline='Foo')}}} ||
    558558|| (Alternate syntax)                                      || {{{reporter_obj.article_set.add(article_obj)}}} ||
    559559|| ("values" lookup, etc., not previously possible)        || {{{reporter_obj.article_set.values()}}} ||
Back to Top