X

Select Your Country

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X

Select Your Currency

Türk Lirası $ US Dollar

Solution to save() got an unexpected keyword argument 'force_insert' Error

Solution to save() got an unexpected keyword argument 'force_insert' Error
HomepageKnowledge BaseGeneralSolution to save() got an unexpecte...
Solution to save() got an unexpected keyword argument 'force_insert' Error

If you use a special save method that depends on your model in your Django projects, you need to add the arguments.

*args, **kwargs

def save(self, *args, **kwargs):
if not self.id:
self.title_slug = slugify(self.title)
else:
pass
super(Categories, self).save(*args, **kwargs)

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(417 times viewed. / 1 people found helpful.)