#22922: 1.7RC1 introduces InvalidBasesError when migrating with a Model that
extends User
-------------------------------+----------------------
     Reporter:  bufke          |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Migrations     |    Version:  1.7-rc-1
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+----------------------
 Extend the User model using this method

 {{{
 from django.contrib.auth.models import User

 class Faculty(User):
     foo = models.CharField(max_length=10)
 }}}

 In 1.7 beta 4 this works. With 1.7RC1 I get:

 {{{
 Running migrations:
   Applying contenttypes.0001_initial...Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/__init__.py", line 385, in
 execute_from_command_line
     utility.execute()
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/__init__.py", line 377, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/base.py", line 288, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/base.py", line 337, in execute
     output = self.handle(*args, **options)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/commands/migrate.py", line 160, in handle
     executor.migrate(targets, plan, fake=options.get("fake", False))
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/executor.py", line 62, in migrate
     self.apply_migration(migration, fake=fake)
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/executor.py", line 90, in apply_migration
     if self.detect_soft_applied(migration):
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/executor.py", line 134, in
 detect_soft_applied
     apps = project_state.render()
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/state.py", line 71, in render
     raise InvalidBasesError("Cannot resolve bases for %r" %
 new_unrendered_models)
 django.db.migrations.state.InvalidBasesError: Cannot resolve bases for
 [<django.db.migrations.state.ModelState object at 0x7f5d6af3ad50>]
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22922>
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/048.35812634ecdf765bb0760a989542008b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to