Skip to content

Commit

Permalink
Added fixtures files missing from [16590].
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ramiro committed Aug 8, 2011
1 parent be87f0b commit 4fc3741
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django/db/backends/mysql/base.py
Expand Up @@ -366,7 +366,7 @@ def enable_constraint_checking(self):

def check_constraints(self, table_names=None):
"""
Checks each table name in table-names for rows with invalid foreign key references. This method is
Checks each table name in `table_names` for rows with invalid foreign key references. This method is
intended to be used in conjunction with `disable_constraint_checking()` and `enable_constraint_checking()`, to
determine if rows with invalid references were entered while constraint checks were off.
Expand Down
2 changes: 1 addition & 1 deletion django/db/backends/sqlite3/base.py
Expand Up @@ -208,7 +208,7 @@ def _cursor(self):

def check_constraints(self, table_names=None):
"""
Checks each table name in table-names for rows with invalid foreign key references. This method is
Checks each table name in `table_names` for rows with invalid foreign key references. This method is
intended to be used in conjunction with `disable_constraint_checking()` and `enable_constraint_checking()`, to
determine if rows with invalid references were entered while constraint checks were off.
Expand Down
17 changes: 17 additions & 0 deletions tests/regressiontests/fixtures_regress/fixtures/forward_ref.json
@@ -0,0 +1,17 @@
[
{
"pk": 1,
"model": "fixtures_regress.book",
"fields": {
"name": "Cryptonomicon",
"author": 4
}
},
{
"pk": "4",
"model": "fixtures_regress.person",
"fields": {
"name": "Neal Stephenson"
}
}
]
@@ -0,0 +1,17 @@
[
{
"pk": 1,
"model": "fixtures_regress.book",
"fields": {
"name": "Cryptonomicon",
"author": 3
}
},
{
"pk": "4",
"model": "fixtures_regress.person",
"fields": {
"name": "Neal Stephenson"
}
}
]

0 comments on commit 4fc3741

Please sign in to comment.