The term 'Cleaning' in Django -
class enhancedarticleform(articleform): def clean_pub_date(self):
this example djangobook. when 'clean' in django, mean? having difficulty trying understand it.
it's naming convention doing custom validation on 1 or more form / model form fields. see https://docs.djangoproject.com/en/1.5/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other more information.
Comments
Post a Comment