Skip to content

Commit

Permalink
Adding the update index command to import.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Oct 9, 2023
1 parent 739fd3f commit dc60e0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api_v2/management/commands/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def add_arguments(self, parser):

def build_index(self):
self.stdout.write('Building search index.')
call_command('update_index', '--remove')


def handle(self, *args, **options) -> None:
self.stdout.write('Checking if directory exists.')
Expand Down

0 comments on commit dc60e0a

Please sign in to comment.