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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user