django save another class data while saving a class

Solutions on MaxInterview for django save another class data while saving a class by the best coders in the world

showing results for - "django save another class data while saving a class"
Aisha
17 Sep 2016
1class Visit(models.Mode):
2     attribute = 
3     etc etc etc
4
5    def save(self, *args, **kwargs):
6        # do something with Invoice here
7        return super().save(*args, **kwargs)
8
similar questions