Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django save another class data while saving a class

class Visit(models.Mode):
     attribute = 
     etc etc etc

    def save(self, *args, **kwargs):
        # do something with Invoice here
        return super().save(*args, **kwargs)
Source by forum.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #save #class #data #saving #class
ADD COMMENT
Topic
Name
8+8 =