def clean_name(self):
name = self.cleaned_data['<STR_LIT:name>']<EOL>reserved_names = self._meta.model._meta.get_all_field_names()<EOL>if name not in reserved_names:<EOL><INDENT>return name<EOL><DEDENT>raise ValidationError(_('<STR_LIT>'<EOL>'<STR_LIT>') % '<STR_LIT>'.join(reserved_names))<EOL>
Avoid name clashes between static and dynamic attributes.