Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def auth_folder(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('system_manage', '0002_refresh_collation_reindex'),
('tools', '0001_initial'),
('application', '0001_initial'),
('knowledge', '0001_initial'),
]

operations = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there appears to be an error in this migration file. The dependencies list should not include apps that are not required by the models being modified. Specifically:

  1. There is no system_manage.models mentioned.
  2. Although 'tool' app was previously added, it seems like an unnecessary dependency.

The correct line should be without the entries for 'tools' and 'knowledge':

dependencies = [
    ('system_manage', '0002_refresh_collation_reindex'),
]

Also, ensure that none of these dependencies have already been satisfied earlier in the migrations history (in previous versions), or you might cause circular references if they depend on each other.

Expand Down
Loading