mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #30382 -- Allowed specifying parent classes in force_insert of Model.save().
This commit is contained in:
committed by
Mariusz Felisiak
parent
601ffb0da3
commit
a40b0103bc
@@ -10,7 +10,7 @@ class RevisionableModel(models.Model):
|
||||
title = models.CharField(blank=True, max_length=255)
|
||||
when = models.DateTimeField(default=datetime.datetime.now)
|
||||
|
||||
def save(self, *args, force_insert=None, force_update=None, **kwargs):
|
||||
def save(self, *args, force_insert=False, force_update=False, **kwargs):
|
||||
super().save(
|
||||
*args, force_insert=force_insert, force_update=force_update, **kwargs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user