#7266: "Not specified" states for BooleanField
----------------------------------------+-----------------------------------
Reporter: Valera Grishin | Owner: nobody
Status: reopened | Milestone:
Component: Admin interface | Version: SVN
Resolution: | Keywords: BooleanField
NullBooleanField nfa-fixed
Stage: Fixed on a branch | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------+-----------------------------------
Changes (by Karen Tracey <[EMAIL PROTECTED]>):
* keywords: BooleanField NullBooleanField => BooleanField
NullBooleanField nfa-fixed
* stage: Unreviewed => Fixed on a branch
Comment:
I'm going to say this is 'fixed on a branch' because the behavior of
adding multiple of the inline-edited objects is no longer present in
newforms-admin.
Note, though, that for these specific models, the behavior might still
seem a bit odd. (But I think the models are a bit odd.) If the only
field besides the !ForeignKey you have in your inline-edited model is a
!BooleanField, then the only instances of the inline-edited model you can
create from the parent's edit page are those where the values of the
!BooleanField are True. You cannot create one with False or Unknown (in
the case of !NullBooleanField) because these values are considered
'empty', and if the !BooleanField is the only field in the inline-edited
object, then the whole inline-edited row appears to be empty and it is not
added.
Therefore, if you really need to have this kind of related object, you
will need to create the False/Unknown values via their own admin page, not
via editing the related parent object. You can then see (and delete, if
you like) the related objects on the parent's change page. You just can't
create them there.
--
Ticket URL: <http://code.djangoproject.com/ticket/7266#comment:4>
Django Code <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
-~----------~----~----~----~------~----~------~--~---