custom save method on model - django

后端 未结 2 1856
后悔当初
后悔当初 2021-02-04 12:25

I am overriding the save method on one of my models:

def save(self, *args, **kwargs):
    self.set_coords()
    super(Post, self).save(*args, **kwargs)

def __un         


        
2条回答
提交回复
热议问题