#21638: Infinite migrations when using AUTH_USER_MODEL
-------------------------------------+-------------------------------------
Reporter: patrick@… | Owner: Andrew
Type: Bug | Godwin <andrew@…>
Component: Migrations | Status: new
Severity: Normal | Version: master
Keywords: | Resolution:
Has patch: 0 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by anonymous):
* status: closed => new
* resolution: fixed =>
Comment:
I am still encountering this issue on 1.7b1
{{{
$ git log
commit dda6224459ed843dfd63e85729613fcc60ce925f
Author: James Bennett <[email protected]>
Date: Thu Mar 20 19:42:11 2014 -0500
[1.7.x] Bump version numbers for 1.7 beta 1.
}}}
User Model
{{{
class User(AbstractUser):
def __unicode__(self):
return self.username
}}}
Running ./manage makemigrations
{{{
./manage.py makemigrations
Migrations for 'users':
0002_auto_20140415_1115.py:
- Alter field username on user
}}}
Results in
{{{
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='username',
field=models.CharField(help_text=u'Required. 30 characters or
fewer. Letters, digits and @/./+/-/_ only.', unique=True, max_length=30,
verbose_name=u'username',
validators=[django.core.validators.RegexValidator(u'^[\\w.@+-]+$', u'Enter
a valid username.', u'invalid')]),
),
]
}}}
And this keeps happening over and over
--
Ticket URL: <https://code.djangoproject.com/ticket/21638#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/088.eff924d98706c6800b245e6b4379c5fd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.