def __init__(self, *args, **kwargs):
        self.instance = kwargs.pop("instance", None)

        initial = kwargs.setdefault("initial", {})
        initial["name"] = self.instance.name
        initial["description"] = self.instance.description
        initial["status"] = self.instance.status
        initial["cc_version"] = self.instance.cc_version

        initial["idprefix"] = self.instance.case.idprefix
        initial["priority"] = self.instance.case.priority

        super(EditCaseVersionForm, self).__init__(*args, **kwargs)
Initialize EditCaseVersionForm, pulling instance from kwargs.
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/manage/cases/forms.py/EditCaseVersionForm.__init__