#9640: BooleanField with choices, defaults, and blank=False still given blank option in their formfields -------------------------------+-------------------------------------------- Reporter: Nate | Owner: fperetti Status: closed | Milestone: 1.1 Component: Forms | Version: 1.0 Resolution: fixed | Keywords: BooleanField, FormField, choice set Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------+-------------------------------------------- Changes (by fperetti):
* status: new => closed * resolution: => fixed Comment: =================================================================== --- django/db/models/fields/__init__.py (revisión: 10119) +++ django/db/models/fields/__init__.py (copia de trabajo) @@ -371,7 +371,7 @@ class BooleanField(Field): def __init__(self, *args, **kwargs): - kwargs['blank'] = True + kwargs['blank'] = False if 'default' not in kwargs and not kwargs.get('null'): kwargs['default'] = False Field.__init__(self, *args, **kwargs) -- Ticket URL: <http://code.djangoproject.com/ticket/9640#comment:8> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---