Fix deprecation warning in ModelForm