(self)
Update information for children belonging to this root.
Update information for children belonging to this root.
Update information for children belonging to this root .
def update_children(self):
        """
        Update information for children belonging to this root.
        """
        # Get all children of this root
        children = Analysis.objects.filter(root=self)

        # Update all children information
        children.update(json_text=self.json_text,
                        template=self.template,
                        name=self.name,
                        security=self.security,
                        lastedit_date=self.lastedit_date,
                        lastedit_user=self.lastedit_user,
                        text=self.text,
                        html=self.html,
                        image=self.image)

        # Update last edit user and date for children projects.
        Project.objects.filter(analysis__root=self).update(lastedit_date=self.lastedit_date,
                                                           lastedit_user=self.lastedit_user)
def update_children ( self ) : # Get all children of this root children = Analysis . objects . filter ( root = self ) # Update all children information children . update ( json_text = self . json_text , template = self . template , name = self . name , security = self . security , lastedit_date = self . lastedit_date , lastedit_user = self . lastedit_user , text = self . text , html = self . html , image = self . image ) # Update last edit user and date for children projects. Project . objects . filter ( analysis__root = self ) . update ( lastedit_date = self . lastedit_date , lastedit_user = self . lastedit_user )