def __init__(self, *args, **kwargs):
        super(FileForm, self).__init__(*args, **kwargs)

        if 'sha1' in self.fields:
            self.fields['sha1'].widget.attrs['readonly'] = True

        if self.fields in '_file_size':
            self.fields['_file_size'].widget.attrs['readonly'] = True

        self.init_layout()
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/admin/file/forms.py/FileForm.__init__/swapped operands of `in`