On 4/25/06, Adam <[EMAIL PROTECTED]> wrote:
>
> I searched the ticket system and discovered that the first version
> works as:
>
> reporter_obj.article_set.create(headline='Foo')
>
> Was it intended to have two different methods for this? "add" for using
> a preexisting object and "create" for using keywords? I guess that
> makes sense, because create does an extra operation, but I could also
> see the case for keeping the API smaller.

Yes - this is intentional. When we were adding this functionality to
MR, there were a few threads on the dev list talking about it. The
decision was made to have two operations because they really are two
separate operations (in particular, to capture the semantics that
'create' will actually make something new, whereas 'add' does not).

> Just pointing it out in case this is something that got lost in the
> cracks. It would also help if someone who knows how its supposed to
> work could change the wiki.

Yes - this was lost in the cracks. The wiki page reflects the original
thoughts on the topic - the implementation is how it worked out. I've
updated the wiki to reflect the implementation.

Thanks for pointing this out.

Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to