You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operations to perform:
Target specific migration: 0011_alter_id_fields, from social_django
Running migrations:
Rendering model states... DONE
Unapplying social_django.0016_alter_usersocialauth_extra_data... OK
Unapplying social_django.0015_rename_extra_data_new_usersocialauth_extra_data... OK
Unapplying social_django.0014_remove_usersocialauth_extra_data... OK
Unapplying social_django.0013_migrate_extra_data...Traceback (most recent call last):
File "/app/manage.py", line 44, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 357, in handle
post_migrate_state = executor.migrate(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 141, in migrate
state = self._migrate_all_backwards(plan, full_plan, fake=fake)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 219, in _migrate_all_backwards
self.unapply_migration(states[migration], migration, fake=fake)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 282, in unapply_migration
state = migration.unapply(state, schema_editor)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/migration.py", line 193, in unapply
operation.database_backwards(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/operations/special.py", line 204, in database_backwards
self.reverse_code(from_state.apps, schema_editor)
File "/usr/local/lib/python3.10/site-packages/social_django/migrations/0013_migrate_extra_data.py", line 69, in migrate_json_field_backwards
is_text_field = issubclass(
TypeError: issubclass() arg 1 must be a class
The text was updated successfully, but these errors were encountered:
Expected behaviour
We can revert all migrations from version
4.0.0
to5.4.2
.Actual behaviour
We get a
TypeError
in0013_migrate_extra_data.py
What are the steps to reproduce this issue?
python manage.py migrate
python manage.py migrate social_django 0011_alter_id_fields
Any logs, error output, etc?
When reverting migrations with:
we get the following errors:
The text was updated successfully, but these errors were encountered: