[Fixes #11920] Remove call to command rebuild_index in tasks.py#14304
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the execution of the 'rebuild_index' Django management command from the 'migrations' task in tasks.py. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
Removes an obsolete manage.py rebuild_index invocation from the migrations() Invoke task, aligning tasks.py with the post–Django 4.2 removal of Haystack and preventing the confusing “Type manage.py help for usage.” message reported in #11920.
Changes:
- Deleted the
rebuild_indexctx.run(...)call from themigrations()task. - Removed the surrounding broad
try/except: passblock tied to that call.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
#11920
Remove call to rebuild_index,
Supersedes #11921
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.