1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

magic-removal: Fixed use of return value of cursor.execute() in m2m add() and added a test to make sure

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant
2006-02-07 18:47:32 +00:00
parent ab6a97cb4a
commit e69b09a033
2 changed files with 8 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ API_TESTS = """
>>> a2.publications.add(p1, p2)
>>> a2.publications.add(p3)
# Adding a second time is OK
>>> a2.publications.add(p3)
# Add a Publication directly via publications.add by using keyword arguments.
>>> a2.publications.add(title='Highlights for Children')