def _update_instance(self, data):

        assert self.instance is not None, "Instance object shoud not be None."
        self.instance.name = data['name']
        self.instance.description = data['description']
        self.instance.private = data['private']
        self.instance.save()
Updates given instance with provided data kwargs.
dataset/ETHPy150Open Djacket/djacket/core/backend/repository/forms.py/RepositoryCreationForm._update_instance