Skip to content

Commit 929b54f

Browse files
feanilclaude
andcommitted
fix: pass save() arguments by keyword for Django 6.0 compatibility
Django 6.0 will require save()'s force_insert, force_update, using, and update_fields to be passed as keyword arguments only (positional support deprecated in 5.1). Updates CourseMode.save() to pass them by keyword when delegating to super(). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1abf777 commit 929b54f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/djangoapps/course_modes/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def save(self, force_insert=False, force_update=False, using=None): # pylint: d
268268
if self.id is None:
269269
# If this model has no primary key at save time, it needs to be force-inserted.
270270
force_insert = True
271-
super().save(force_insert, force_update, using)
271+
super().save(force_insert=force_insert, force_update=force_update, using=using)
272272

273273
@property
274274
def slug(self):

0 commit comments

Comments
 (0)