#21872: With custom User, test database is not created due to missing auth.Group relation ---------------------------------+--------------------------------------- Reporter: lwarx | Owner: Type: Bug | Status: new Component: Migrations | Version: 1.7-alpha-1 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+--------------------------------------- Changes (by bmispelon):
* needs_better_patch: => 0 * needs_docs: => 0 * severity: Normal => Release blocker * needs_tests: => 0 * stage: Unreviewed => Accepted Comment: Hi, I can reproduce this issue with this simple model: {{{#!python from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin class User(AbstractBaseUser, PermissionsMixin): USERNAME_FIELD = 'id' }}} With this model (and changing the settings to point `AUTH_USER_MODEL` to it), doing the initial `makemigrations` works but `migrate` fails with the error. However, `migrate` will work if the migrations can be faked (for example if the table has been created using a different version of Django). The error can always be triggered by doing `./manage.py test <appname>` (where `<appname>` is the name of the app containing the custom user model). I'm marking this as a release blocker as well since things work on Django 1.6. Thanks. -- Ticket URL: <https://code.djangoproject.com/ticket/21872#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.e23567c56b4115f727b6cf892aa3e801%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.