1👍
✅
Can you make sure clean_name
is even getting called? I was under the impression that models only had a clean
method, not a method for each individual field (that syntax is used for forms). Try using just def clean(self):
https://docs.djangoproject.com/en/1.10/ref/models/instances/#django.db.models.Model.clean
Source:stackexchange.com