def _initialize_form(self, instance):

        if instance is not None:
            assert isinstance(instance, Repository), "Instance should be of Repository type."
            self.instance = instance
            self.repo_entering_name = instance.name  # store current repository name in case user changed it's name.
If instance object is provided then we initialize form with
dataset/ETHPy150Open Djacket/djacket/core/backend/repository/forms.py/RepositoryCreationForm._initialize_form