django1/django/db/migrations
Loïc Bistuer ed0ff913c6 Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers.
This deprecates use_for_related_fields.

Old API:

class CustomManager(models.Model):
    use_for_related_fields = True

class Model(models.Model):
    custom_manager = CustomManager()

New API:

class Model(models.Model):
    custom_manager = CustomManager()

    class Meta:
        base_manager_name = 'custom_manager'

Refs #20932, #25897.

Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
2016-05-17 12:07:22 +07:00
..
operations Removed unused code in AlterField.database_forwards(). 2016-05-14 06:43:40 -04:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Fixed #26429 -- Added a timestamp to merge migration names. 2016-05-11 08:19:19 -04:00
exceptions.py Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph() 2016-05-08 13:53:26 +02:00
executor.py Fixed #24100 -- Made the migration signals dispatch its plan and apps. 2016-05-15 19:51:15 -04:00
graph.py Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph() 2016-05-08 13:53:26 +02:00
loader.py Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph() 2016-05-08 13:53:26 +02:00
migration.py Fixed #25833 -- Added support for non-atomic migrations. 2016-02-05 09:09:05 -05:00
optimizer.py Fixed #26064 -- Moved operation reduction logic to their own class. 2016-01-23 14:19:02 -05:00
questioner.py Fixed #25005 -- Made date and time fields with auto_now/auto_now_add use effective default. 2016-05-09 07:48:40 -04:00
recorder.py Fixed #24742 -- Made runserver.check_migrations ignore read-only databases 2015-05-13 18:30:36 +02:00
serializer.py Fixed #26555 -- Gave deconstructible objects a higher priority during serialization 2016-05-04 22:39:19 +02:00
state.py Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
topological_sort.py Fixed #23844 -- Used topological sort for migration operation dependency resolution. 2014-11-20 12:49:49 -05:00
utils.py Fixed #26429 -- Added a timestamp to merge migration names. 2016-05-11 08:19:19 -04:00
writer.py Fixed #25388 -- Added an option to allow disabling of migrations during test database creation 2016-03-23 08:21:30 +08:00