#12285: Confusing error message when ModelForm does not have model set
------------------------------------+---------------------------------------
          Reporter:  RaceCondition  |         Owner:  nobody
            Status:  new            |     Milestone:  1.2   
         Component:  Forms          |       Version:  1.1   
        Resolution:                 |      Keywords:        
             Stage:  Accepted       |     Has_patch:  1     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by tobias):

  * owner:  tobias => nobody
  * status:  assigned => new
  * stage:  Unreviewed => Accepted

Comment:

 Works as intended.  My personal preference is for unit tests, but that
 might just be me.  Also the exception could be made more specific
 (AttributeError?  ValueError?).

 Otherwise, this seems like a simple, intuitive fix to an obscure error.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12285#comment:3>
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