Author: ramiro
Date: 2011-08-08 10:08:35 -0700 (Mon, 08 Aug 2011)
New Revision: 16591
Added:
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref.json
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref_bad_data.json
Modified:
django/trunk/django/db/backends/mysql/base.py
django/trunk/django/db/backends/sqlite3/base.py
Log:
Added fixtures files missing from [16590].
Modified: django/trunk/django/db/backends/mysql/base.py
===================================================================
--- django/trunk/django/db/backends/mysql/base.py 2011-08-07 00:43:26 UTC
(rev 16590)
+++ django/trunk/django/db/backends/mysql/base.py 2011-08-08 17:08:35 UTC
(rev 16591)
@@ -366,7 +366,7 @@
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.
Modified: django/trunk/django/db/backends/sqlite3/base.py
===================================================================
--- django/trunk/django/db/backends/sqlite3/base.py 2011-08-07 00:43:26 UTC
(rev 16590)
+++ django/trunk/django/db/backends/sqlite3/base.py 2011-08-08 17:08:35 UTC
(rev 16591)
@@ -208,7 +208,7 @@
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.
Added:
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref.json
===================================================================
---
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref.json
(rev 0)
+++
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref.json
2011-08-08 17:08:35 UTC (rev 16591)
@@ -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"
+ }
+ }
+]
\ No newline at end of file
Added:
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref_bad_data.json
===================================================================
---
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref_bad_data.json
(rev 0)
+++
django/trunk/tests/regressiontests/fixtures_regress/fixtures/forward_ref_bad_data.json
2011-08-08 17:08:35 UTC (rev 16591)
@@ -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"
+ }
+ }
+]
\ No newline at end of file
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.