#6967: ModelForms doesn't validate CHOICES
------------------------------------------------------------------+---------
          Reporter:  [email protected]  |         
Owner:  jacob
            Status:  closed                                       |     
Milestone:  1.0  
         Component:  Forms                                        |       
Version:  SVN  
        Resolution:  fixed                                        |      
Keywords:       
             Stage:  Accepted                                     |     
Has_patch:  1    
        Needs_docs:  0                                            |   
Needs_tests:  0    
Needs_better_patch:  0                                            |  
------------------------------------------------------------------+---------
Comment (by stavros):

 I'm getting this bug as well (running latest trunk as of two minutes ago).
 Here is my traceback:

 {{{
 Validating models...
 Unhandled exception in thread started by <function inner_run at 0x6aef70>
 Traceback (most recent call last):
   File "/Library/Python/2.5/site-
 packages/django/core/management/commands/runserver.py", line 48, in
 inner_run
     self.validate(display_num_errors=True)
   File "/Library/Python/2.5/site-packages/django/core/management/base.py",
 line 249, in validate
     num_errors = get_validation_errors(s, app)
   File "/Library/Python/2.5/site-
 packages/django/core/management/validation.py", line 28, in
 get_validation_errors
     for (app_name, error) in get_app_errors().items():
   File "/Library/Python/2.5/site-packages/django/db/models/loading.py",
 line 131, in get_app_errors
     self._populate()
   File "/Library/Python/2.5/site-packages/django/db/models/loading.py",
 line 58, in _populate
     self.load_app(app_name, True)
   File "/Library/Python/2.5/site-packages/django/db/models/loading.py",
 line 74, in load_app
     models = import_module('.models', app_name)
   File "/Library/Python/2.5/site-packages/django/utils/importlib.py", line
 35, in import_module
     __import__(name)
   File "/Users/stavros/Code/Django/head/main/models.py", line 215, in
 <module>
     class AdType(models.Model):
   File "/Users/stavros/Code/Django/head/main/models.py", line 221, in
 AdType
     price = models.DecimalField(_("price"), max_digits=6,
 decimal_places=2, min_value=0)
   File "/Library/Python/2.5/site-
 packages/django/db/models/fields/__init__.py", line 589, in __init__
     Field.__init__(self, verbose_name, name, **kwargs)
 TypeError: __init__() got an unexpected keyword argument 'min_value'

 }}}

 I'm not sure what this means, but I can't launch my server.

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