#14152: Model validation: full_clean() should call clean()  before 
clean_fields()
------------------------------------------+---------------------------------
 Reporter:  ludovicofischer               |       Owner:  nobody    
   Status:  new                           |   Milestone:  1.3       
Component:  Database layer (models, ORM)  |     Version:  1.2       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  1                             |  
------------------------------------------+---------------------------------
 If a model field is marked as blank=False, a possibility is to override
 Model.clean() to set the field to a default value. Unfortunately,
 Model.full_clean() will still throw an exception, because the exception
 will be generated by Model.clean_fields() before clean() has a chance to
 run. This patch interchanges the execution order so as to make clean() run
 before clean_fields().

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14152>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to