Closed gilgamezh closed 9 years ago
relacionado a https://github.com/PyAr/pyarweb/issues/158
pudieron solucionar esto? a mi no me causa problemas.
Solamente se podía reproducir con postgres. Con el push que hice se soluciona.
Desde que actualicé mi branch con los de PyAr-master, corro las migrations y tengo este traceback:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/commands/migrate.py", line 63, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/usr/local/lib/python3.4/dist-packages/django/db/migrations/executor.py", line 17, in __init__
self.loader = MigrationLoader(self.connection)
File "/usr/local/lib/python3.4/dist-packages/django/db/migrations/loader.py", line 48, in __init__
self.build_graph()
File "/usr/local/lib/python3.4/dist-packages/django/db/migrations/loader.py", line 233, in build_graph
self.graph.add_dependency(migration, key, parent)
File "/usr/local/lib/python3.4/dist-packages/django/db/migrations/graph.py", line 42, in add_dependency
raise KeyError("Migration %s dependencies reference nonexistent parent node %r" % (migration, parent))
KeyError: "Migration events.0004_auto_20141206_1111 dependencies reference nonexistent parent node ('events', '0003_auto_20141123_2045')"
Fixeado, el tema es que quedaron algunos migrations que no los sacamos con git rm, explicitamente: 0004_auto_20141206_1111.py 0005_auto_20141206_1301.py y 0004_auto_20141206_1111.py revienta porque hace referencia al 0003_auto_20141123_2045, banquenmen porque lo hice en el master del fork donde venia laburando y no se como pushear solamente este git rm xD
Closed with #189
che que quilombo que arme con esto, mil disculpas. u.u
2014-12-08 12:57 GMT-03:00 Tim Zenderman notifications@github.com:
Closed #169 https://github.com/PyAr/pyarweb/issues/169.
— Reply to this email directly or view it on GitHub https://github.com/PyAr/pyarweb/issues/169#event-204264666.
Diego Puente
I think is related to: git blame events/models.py