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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -