Django

Code

Ticket #6212 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

models.NullBooleanField.formfield() returns CharField (instead of newforms.NullBooleanField)

Reported by: anonymous Assigned to: nobody
Milestone: Component: Forms
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Tried to get an answer on IRC as to whether there was a reason for this omission or whether it's just a bug.

Attachments

NullBooleanField_formfield.diff (0.7 kB) - added by anonymous on 12/14/07 17:41:17.
patch to add the missing method
6212.diff (0.6 kB) - added by SmileyChris on 12/16/07 01:55:10.

Change History

12/14/07 17:41:17 changed by anonymous

  • attachment NullBooleanField_formfield.diff added.

patch to add the missing method

12/16/07 01:54:56 changed by SmileyChris

  • needs_better_patch changed.
  • component changed from Database wrapper to django.newforms.
  • needs_tests changed.
  • summary changed from models.NullBooleanField.formfield() returns CharField (vs NullBooleanField) to models.NullBooleanField.formfield() returns CharField (instead of newforms.NullBooleanField).
  • needs_docs changed.
  • stage changed from Unreviewed to Accepted.

12/16/07 01:55:10 changed by SmileyChris

  • attachment 6212.diff added.

12/16/07 01:56:20 changed by SmileyChris

  • stage changed from Accepted to Ready for checkin.

Pretty straight-forward omission. My patch follows the formatting of the others, anonymous' was a bit hackish

12/17/07 04:35:54 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [6935]) Fixed #6212 -- Give models.NullBooleanField? the right default newforms field. Patch from SmileyChris?.


Add/Change #6212 (models.NullBooleanField.formfield() returns CharField (instead of newforms.NullBooleanField))




Change Properties
Action