Changes between Version 1 and Version 2 of Dependencies


Ignore:
Timestamp:
09/03/08 21:48:13 (6 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Dependencies

    v1 v2  
    1111     
    1212    depends_on = ( 
    13         ("accounts", "0003_user_profile.py") 
     13        ("accounts", "0003_user_profile.py"), 
    1414    ) 
    1515 
     
    2121 
    2222Dependencies also work in reverse; South knows not to undo that 0003_user_profile migration until it has undone the 0002_post migration. 
     23 
     24You can have multiple dependencies, and all sorts of wacky structures; there are, however, two rules: 
     25 
     26 - No circular dependencies (two or more migrations depending on each other) 
     27 - No upwards dependencies in the same app (so you can't make 0002_post in the forum app depend on 0003_room in the same app, either directly or through a dependency chain.