If your goal is only to make things uppercase when stored in the admin section, you'll want to create a custom validation form to change case:
class MyArticleAdminForm(forms.ModelForm): class Meta: model = Article def clean_name(self): return self.cleaned_data["name"].upper()
If your goal is always to be uppercase, you must override the save in the model field:
class Blog(models.Model): name = models.CharField(max_length=100) def save(self, force_insert=False, force_update=False): self.name = self.name.upper() super(Blog, self).save(force_insert, force_update)
source share