| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
management commands.
|
|
|
|
|
|
| |
migration
Thanks Thomas Tanner for the report and Tim Graham for the review.
|
|
|
|
| |
Follow-up of f4f24d30e0.
|
|
|
|
|
|
|
| |
before db migration"
This reverts commit 9f1dbe29c0dbae57ff7950f3f64a0d083177cca8.
The proposed solution does not pass the test suite.
|
|
|
|
|
|
| |
db migration
Thanks Thomas Tanner for the report.
|
| |
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
data for apps with migrations.
|
|
|
|
| |
Thanks djbaldey for the report.
|
|
|
|
| |
refs #23395.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Fixed a test failure that appeared after 753a22a6, although the bug
existed before that commit.
Refs #22308.
|
|
|
|
|
| |
Previously, when createcachetable and flush operated on non-default
databases, they weren't atomic.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
|
|
| |
This commit touchs various parts of the code base and test framework. Any
found usage of opening a cursor for the sake of initializing a connection
has been replaced with 'ensure_connection()'.
|
|
|
|
|
|
|
|
|
| |
get_model[s].
Now that the refactorings are complete, it isn't particularly useful any
more, nor very well named. Let's keep the API as simple as possible.
Fixed #21689.
|
| |
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
| |
Used the app cache's get_app_configs() method instead.
|
| |
|
|
|
|
|
|
|
| |
This commit reverts f44c4a5d0f and 39bbd165.
django.test.simple will be updated in a separate commit as it requires
invasive changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the original ones in django.db.models.loading were kept only for
backwards compatibility, there's no need to recreate them. However, many
internals of Django still relied on them.
They were also imported in django.db.models. They never appear in the
documentation, except a quick mention of get_models and get_app in the
1.2 release notes to document an edge case in GIS. I don't think that
makes them a public API.
This commit doesn't change the overall amount of global state but
clarifies that it's tied to the app_cache object instead of hiding it
behind half a dozen functions.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
django/core/management/commands/flush.py
django/core/management/commands/syncdb.py
django/db/models/loading.py
docs/internals/deprecation.txt
docs/ref/django-admin.txt
docs/releases/1.7.txt
|
| |
| |
| |
| | |
This was a shim for pre-Python 2.7 support.
|
| | |
|
|/
|
|
| |
from old names
|
|
|
|
|
|
|
|
|
|
|
| |
Also moved its documentation to the 'advanced' section. It doesn't
belong to the 'overview'. Same for TransactionTestCase.reset_sequences.
When available_apps is set, after a TransactionTestCase, the database
is now totally empty. post_syncdb is fired at the beginning of the next
TransactionTestCase.
Refs #20483.
|
|
|
|
|
|
|
|
|
| |
This allows using flush on a subset of the tables without having to
manually cascade to all tables with foreign keys to the tables being
truncated, when they're known to be empty.
On databases where truncate is implemented with DELETE FROM, this
doesn't make a difference. The cascade is allowed, not mandatory.
|
| |
|
|
|
|
| |
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
|
|
|
|
|
|
|
|
| |
Since "unless managed" now means "if database-level autocommit",
committing or rolling back doesn't have any effect.
Restored transactional integrity in a few places that relied on
automatically-started transactions with a transitory API.
|
|
|
|
|
| |
This was used at the time the 'database' option did not default to
DEFAULT_DB_ALIAS in make_option.
|
|
|
|
|
| |
The six addition has been borrowed from:
https://bitbucket.org/gutworth/six/changeset/733ef740
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TransactionTestCase flushes DB tables.
Previously, the flush was done before the test case execution and now
it is performed after it.
Other changes to the testing infrastructure include:
* TransactionTestCase now doesn't reset autoincrement sequences either
(previous behavior can achieved by using `reset_sequences`.)
With this, no implicit such reset is performed by any of the provided
TestCase classes.
* New ordering of test cases: All unittest tes cases are run first and
doctests are run at the end.
THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.
Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.
This also fixes #12408.
|
| |
|
|
|
|
|
|
| |
and flush.
Thanks msiedlarek, jpaugh64 and vlinhart!
|
|
|
|
|
| |
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
|
|
|
|
|
|
| |
commands.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
handling in a bunch of management commands. Thanks to Paul McMillan for the report and to adamv and Claude Paroz for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Thanks Julien for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
all tables once, not once *per table*.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
|
|
|
|
| |
as a list
sometimes).
Fixed #5848, thanks to PJCrosier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|