def clean_source_language(self):
        if self.instance and self.instance.id:
            if self.instance.resources.count():
                return self.instance.source_language
            else:
                return self.cleaned_data['source_language']
        else:
            return self.cleaned_data['source_language']
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/projects/forms.py/ProjectForm.clean_source_language/original