[Django]-Django override save method: to return super().save() or not to return?

5👍

You should not use return super().save(*args, **kwargs). Because save method does not return anything in Django’s models.Model class. Here is the reference to GitHub repository. So you should always use:

def save(self, *args, **kwargs):
    #some code
    super().save(*args, **kwargs)
    # some more code
👤ruddra

Leave a comment