Changes between Version 1 and Version 2 of Ticket #28920
- Timestamp:
- Dec 13, 2017, 8:55:51 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28920 – Description
v1 v2 3 3 {{{ 4 4 class MyModel(models.Model): 5 my_field = models.BooleanField()6 7 5 my_objects = models.Manager() 8 6 }}} … … 17 15 fields=[ 18 16 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 19 ('my_field', models.BooleanField()),20 17 ], 21 18 options={ … … 31 28 32 29 After some investigation, we can see that manager with any other name than `objects` will be added to the migration: [https://github.com/django/django/blob/1.11.8/django/db/migrations/state.py#L537]. 30 31 Edit: 32 Under Django 1.8 makemigrations does not create a migration, while in Django 1.11 it creates one.