#25084: django.contrib.contenttypes migrations broken in django 1.7.9
-------------------------------+--------------------
     Reporter:  gGonz          |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Uncategorized  |    Version:  1.7
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Running python manage.py migrate on a clean postgresql database (Python
 2.7.10) throws the following exception:

 {{{
 $ python manage.py migrate
 Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/core/management/__init__.py", line 385, in
 execute_from_command_line
     utility.execute()
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/core/management/__init__.py", line 377, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/core/management/base.py", line 288, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/core/management/base.py", line 338, in execute
     output = self.handle(*args, **options)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/core/management/commands/migrate.py", line 63, in handle
     executor = MigrationExecutor(connection,
 self.migration_progress_callback)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/db/migrations/executor.py", line 17, in __init__
     self.loader = MigrationLoader(self.connection)
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/db/migrations/loader.py", line 48, in __init__
     self.build_graph()
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/db/migrations/loader.py", line 177, in build_graph
     self.load_disk()
   File "/home/vagrant/env/local/lib/python2.7/site-
 packages/django/db/migrations/loader.py", line 103, in load_disk
     migration_module = import_module("%s.%s" % (module_name,
 migration_name))
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
 import_module
     __import__(name)
   File "/home/vagrant/env/local/lib/python2.7/site-
 
packages/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py",
 line 17, in <module>
     class Migration(migrations.Migration):
   File "/home/vagrant/env/local/lib/python2.7/site-
 
packages/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py",
 line 34, in Migration
     migrations.RunPython.noop,
 AttributeError: type object 'RunPython' has no attribute 'noop'
 }}}

 Same command with Django 1.7.8 runs ok.

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

Reply via email to