I have this model I\'m showing in the admin page:
class Dog(models.Model): bark_volume = models.DecimalField(... unladen_speed = models.DecimalField(...
abbreviated, from the django docs:
def clean(self): data = self.cleaned_data subject = data.get("subject") if subject and "help" not in subject: msg = "Must put 'help' in subject." self.add_error('subject', msg) return data