﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22854	Having custom user model creates migrations in django.contrib.auth	Vidir Valberg Gudmundsson	nobody	"This happened when reporting #22853, so it has the same custom user model and same occurences.

=== Models ===
{{{#!python
from django.db import models
from django.contrib.auth.models import AbstractUser


class Profile(AbstractUser):
    title = models.CharField(max_length=255)
}}}

=== Makemigrations output ===

{{{
$ ./manage.py makemigrations
Migrations for 'testapp':
  0001_initial.py:
    - Create model Profile
Migrations for 'auth':
  0002_auto_20140617_1231.py:
    - Remove field groups from user
    - Remove field user_permissions from user
    - Delete model User
}}}

=== New auth migration content ===

{{{#!python
> cat django/contrib/auth/migrations/0002_auto_20140617_1231.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('auth', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='user',
            name='groups',
        ),
        migrations.RemoveField(
            model_name='user',
            name='user_permissions',
        ),
        migrations.DeleteModel(
            name='User',
        ),
    ]
}}}"	Bug	closed	Migrations	dev	Release blocker	duplicate			Unreviewed	0	0	0	0	0	0
