Logo
Blog: Django - save() got an unexpected keyword argument 'force_insert'

You have a custom save() process defined in your business model like:

 
def save(self):
  if self.clean_name == "":
    self.clean_name = self.name
  super(Game, self).save()
 

Add *args and **kwargs to your save calls:

 
def save(self, *args, **kwargs):
  if self.clean_name == "":
    self.clean_name = self.name
  super(Game, self).save(*args, **kwargs)
 

You're welcome. :-)

Blog Index