Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19522 closed Bug (invalid)

ModelForm and BooleanField

Reported by: anonymous Owned by: nobody
Component: Forms Version: 1.5-alpha-1
Severity: Normal Keywords: modelform
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

class TestModel(models.Model):

b = models.BooleanField(db_index=True, default=True)
class Meta:

db_table = 'test'
app_label = 'test'

class TestModelForm(forms.ModelForm):

class Meta:

model = TestModel

f = TestModelForm()

{{ f }} -- no view form

Change History (5)

comment:1 by anonymous, 12 years ago

Version: 1.4-alpha-11.5-alpha-1

in reply to:  description comment:2 by anonymous, 12 years ago

# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _

class TestModel(models.Model):

b = models.BooleanField(db_index=True, default=True, verbose_name=_('Кириллица'))



class TestModelForm(forms.ModelForm):

class Meta:

model = TestModel


f = TestModelForm()


{{ f }} -- no view form


comment:3 by anonymous, 12 years ago

Must user _(u'Кириллица')

Remove this ticket, please.

comment:4 by Tim Graham, 12 years ago

Resolution: invalid
Status: newclosed

comment:5 by anonymous, 12 years ago

This problem not raise exception.

Note: See TracTickets for help on using tickets.
Back to Top