Changes between Version 1 and Version 2 of Ticket #31834


Ignore:
Timestamp:
Jul 27, 2020, 2:57:56 PM (4 years ago)
Author:
Brіаn Lаі
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31834 – Description

    v1 v2  
    4646        ]
    4747}}}
     48
     49The error shown in the terminal is:
     50
     51{{{
     52Traceback (most recent call last):
     53  File "manage.py", line 22, in <module>
     54    execute_from_command_line(sys.argv)
     55  File "/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
     56    utility.execute()
     57  File "/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
     58    self.fetch_command(subcommand).run_from_argv(self.argv)
     59  File "/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
     60    self.execute(*args, **cmd_options)
     61  File "/lib/python3.6/site-packages/django/core/management/commands/sqlmigrate.py", line 30, in execute
     62    return super().execute(*args, **options)
     63  File "/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
     64    output = self.handle(*args, **options)
     65  File "/lib/python3.6/site-packages/django/core/management/commands/sqlmigrate.py", line 65, in handle
     66    sql_statements = executor.collect_sql(plan)
     67  File "/lib/python3.6/site-packages/django/db/migrations/executor.py", line 225, in collect_sql
     68    state = migration.apply(state, schema_editor, collect_sql=True)
     69  File "/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply
     70    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
     71  File "/lib/python3.6/site-packages/django/db/migrations/operations/models.py", line 525, in database_forwards
     72    getattr(new_model._meta, self.option_name, set()),
     73  File "/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 380, in alter_unique_together
     74    self._delete_composed_index(model, fields, {'unique': True}, self.sql_delete_unique)
     75  File "/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 414, in _delete_composed_index
     76    ", ".join(columns),
     77ValueError: Found wrong number (0) of constraints for bar_model3(model_2, order)
     78}}}
Back to Top