Reputation: 627
When I searched for overriding the save method I found to different things:
def save(self, **kwargs):
pass
and:
def save(self, *args, **kwargs):
pass
What's better?
Upvotes: 0
Views: 283
Reputation: 6379
save(self, *args, **kwargs) is the recommended way to go since it is the signature you can find in the django source code
Edit: I am assuming you are talking about the save() method in case of django models
Upvotes: 1