#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 , 13 years ago
| Version: | 1.4-alpha-1 → 1.5-alpha-1 |
|---|
comment:2 by , 13 years ago
comment:4 by , 13 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _