1
0
mirror of https://github.com/django/django.git synced 2025-03-26 09:10:50 +00:00

11 Commits

Author SHA1 Message Date
Tim Graham
943b1047de [1.7.x] Fixed flake8 warnings.
Backport of 392e11945fa246d751d23bb515703fcaf55dfa26 from master
2014-12-01 16:01:18 -05:00
Luke Plant
8e3c3be32d [1.7.x] Fixed bug in circular dependency algo for migration dependencies.
Previous algo only worked if the first item was a part of the loop,
and you would get an infinite loop otherwise (see test).

To fix this, it was much easier to do a pre-pass.

A bonus is that you now get an error message that actually helps you debug
the dependency problem.

Backport of ff3d746e8d8e8fbe6de287bd0f4c3a9fa23c18dc from master, with
additional tests from c5def493d0993d65bf7d96f0a204006cbeaa6178
2014-11-26 08:15:33 +00:00
Markus Bertheau
35cd0854f9 [1.7.x] Corrected grammar in migrations error message.
Backport of 61f56e239f from master
2014-09-10 10:34:32 -04:00
Andrew Godwin
de3a3096d8 [1.7.x] Fix Python 3 incompatability 2014-09-05 15:48:20 -07:00
Ben Reilly
4ca44d5e10 [1.7.x] switch out recursive dfs for stack based approach, to avoid possibly hitting the recursion limit 2014-09-05 15:39:47 -07:00
Raffaele Salmaso
1a918806ca [1.7.x] Fixed -- Added migration name to nonexistent migration error in makemigrations.
Backport of abd640fbdf from master
2014-08-23 19:19:58 -04:00
Raffaele Salmaso
4ae75cf051 [1.7.x] Fixed -- Added tests for MigrationGraph.{forwards,backwards}_plan
Backport of be4baaefe2 from master
2014-08-23 21:36:08 +00:00
Andrew Godwin
819d5f0c89 [1.7.x] Fixed : Internal migrations done first so __first__ works
Thanks to Chris Beaven.
2014-06-17 23:27:56 -07:00
Andrew Godwin
7f9a0b7061 Fix graph tests 2013-05-30 17:56:53 +01:00
Andrew Godwin
d0ecefc2c9 Start adding operations that work and tests for them 2013-05-29 17:47:10 +01:00
Andrew Godwin
7d041b9394 Split up test and make the State classes a bit better. 2013-05-18 13:49:56 +02:00