Opened 17 years ago
Closed 16 years ago
#6765 closed (fixed)
Docs for 'Providing initial SQL data' misleading
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The documentation for 'Providing initial SQL data' is misleading.
http://www.djangoproject.com/documentation/model-api/#providing-initial-sql-data
It says:
"Each SQL file, if given, is expected to contain valid SQL. The SQL files are piped directly into the database after all of the models’ table-creation statements have been executed."
This implies that any SQL is ok, as long as it is valid. And the SQL files are not "piped directly into the database", they are actually parsed and translated for different backends. The result is that only very simple SQL is allowed (mostly only value inserts). This needs to be clarified.
Change History (2)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [8373]) Fixed #6765: Changed docs/model-apit.txt to better indicate what's expected of initial SQL files.