

def __init__(self, *args, **kwargs):
    super(ProjectForm, self).__init__(*args, **kwargs)
    if (self.instance and self.instance.id):
        if self.instance.resources.count():
            self.fields['source_language'].required = False
            self.fields['source_language'].widget.attrs['disabled'] = 'disabled'
    project_form_init.send(sender=ProjectForm, form=self)

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/projects/forms.py ProjectForm.__init__/original