Changes between Version 1 and Version 2 of Ticket #28920


Ignore:
Timestamp:
Dec 13, 2017, 8:55:51 AM (7 years ago)
Author:
Michał Bońkowski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28920 – Description

    v1 v2  
    33{{{
    44class MyModel(models.Model):
    5     my_field = models.BooleanField()
    6 
    75    my_objects = models.Manager()
    86}}}
     
    1715            fields=[
    1816                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
    19                 ('my_field', models.BooleanField()),
    2017            ],
    2118            options={
     
    3128
    3229After 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
     31Edit:
     32Under Django 1.8 makemigrations does not create a migration, while in Django 1.11 it creates one.
Back to Top