def __init__(self, *args, **kwargs):
    super(AuthorForm, self).__init__(*args, **kwargs)
if self.instance.id:
    self.fields['weight'].widget.attrs['readonly'] = True
Readonly fields in django formset