Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations not working properly #10

Open
tswfi opened this issue Jan 8, 2022 · 0 comments
Open

Migrations not working properly #10

tswfi opened this issue Jan 8, 2022 · 0 comments
Labels

Comments

@tswfi
Copy link
Member

tswfi commented Jan 8, 2022

This is probably a mezzanine bug ..

Running migrations twice fails for some reason

mezzanine    | Traceback (most recent call last):
mezzanine    |   File "/mezzanine/trehacklab/manage.py", line 14, in <module>
mezzanine    | Operations to perform:
mezzanine    |   Apply all migrations: account, admin, auth, blog, conf, contenttypes, core, django_comments, forms, galleries, generic, pages, redirects, sessions, sites, socialaccount
mezzanine    | Running migrations:
mezzanine    |   No migrations to apply.
mezzanine    |     execute_from_command_line(sys.argv)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 425, in execute_from_command_line
mezzanine    |     utility.execute()
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute
mezzanine    |     self.fetch_command(subcommand).run_from_argv(self.argv)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 373, in run_from_argv
mezzanine    |     self.execute(*args, **cmd_options)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 417, in execute
mezzanine    |     output = self.handle(*args, **options)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 90, in wrapped
mezzanine    |     res = handle_func(*args, **kwargs)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/core/management/commands/migrate.py", line 236, in handle
mezzanine    |     changes = autodetector.changes(graph=executor.loader.graph)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/autodetector.py", line 43, in changes
mezzanine    |     changes = self._detect_changes(convert_apps, graph)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/autodetector.py", line 189, in _detect_changes
mezzanine    |     self.generate_altered_fields()
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/autodetector.py", line 928, in generate_altered_fields
mezzanine    |     old_field = self.from_state.models[app_label, old_model_name].get_field(old_field_name)
mezzanine    |   File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/state.py", line 689, in get_field
mezzanine    |     self.options['order_with_respect_to']
mezzanine    | KeyError: 'order_with_respect_to'
@tswfi tswfi added the bug label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant