Skip to content

Commit

Permalink
fix: move transaction atomic to right place
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Aug 27, 2024
1 parent 8c4805a commit b51d318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def add_arguments(self, parser):
dest='batch_delay',
help='Time delay in seconds for each batch')

@transaction.atomic
def handle(self, *args, **options):
"""
The main logic and entry point of the management command
Expand All @@ -57,7 +58,6 @@ def handle(self, *args, **options):

logger.info('Bulk add course staff complete!')

@transaction.atomic
def add_course_staff_from_csv(self, csv_file, batch_size, batch_delay):
"""
Add the given set of course staff provided in csv
Expand Down

0 comments on commit b51d318

Please sign in to comment.