ForeignKey to manyToManyField django evolve error when changing model -
i can't alter model foreignkey manytomanyfield evolve
my model:
class orden(models.model): perfil = models.foreignkey(perfil, blank=true, null=true)
i seek alter to
perfil = models.manytomanyfield(perfil, blank=true, null=true)
if create new database works fine.
this output:
python manage.py evolve --hint traceback (most recent phone 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 399, in execute_from_command_line utility.execute() file "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, 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 242, in run_from_argv self.execute(*args, **options.__dict__) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute output = self.handle(*args, **options) file "/usr/local/lib/python2.7/dist-packages/django_evolution/management/commands/evolve.py", line 60, in handle self.evolve(*app_labels, **options) file "/usr/local/lib/python2.7/dist-packages/django_evolution/management/commands/evolve.py", line 119, in evolve hinted_evolution = diff.evolution() file "/usr/local/lib/python2.7/dist-packages/django_evolution/diff.py", line 246, in evolution attribute_defaults[prop]) keyerror: 'field_type'
django django-models pyevolve
No comments:
Post a Comment