On the page http://www.djangoproject.com/documentation/models/many_to_many/
under Sample API Usage

where it says: -

"
# Add a Publication directly via publications.add by using keyword
arguments.
>>> new_publication = a2.publications.create(title='Highlights for Children')
"

I think it should say: -

"
# Add a Publication directly via publications.create by using keyword
arguments.
>>> new_publication = a2.publications.create(title='Highlights for Children')
"

The distinction between "add" and "create" should be emphasized,
especially for people new to Django.

Also where it says: -

"
# Adding a second time is OK
>>> a2.publications.add(p3)
"

It should be made clear what "OK" means here. Does it mean it has no
effect, or does it mean that another record is created? Right now to
find out the meaning of "OK" people have to go into the Django shell.

Regards.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to