#6702: ModelForm: assert given instance is instance of model
-----------------------+----------------------------------------------------
   Reporter:  guettli  |                Owner:  nobody         
     Status:  new      |            Component:  django.newforms
    Version:  SVN      |           Resolution:                 
   Keywords:           |                Stage:  Unreviewed     
  Has_patch:  1        |           Needs_docs:  0              
Needs_tests:  0        |   Needs_better_patch:  0              
-----------------------+----------------------------------------------------
Comment (by Bastian Kleineidam <[EMAIL PROTECTED]>):

 I don't like that asserts are removed when run with {{{python -O}}}. If a
 model instance is really required at this point, it would IMO be better to
 raise an exception.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6702#comment:2>
Django Code <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