#5509: There is no way for reverting Blank value
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: closed | Component: Uncategorized
Version: SVN | Resolution: invalid
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Changes (by cgrady):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Blank is unrelated to the database issue, as that thread indicates.
Blank merely means you can leave a field out of form validation - what
that means specific to a field depends on that - in a !CharField,
blank=True allows '' as a valid value - in a !ForeignKey, it would allow
you to get through with no value specified, which would then translate to
NULL in the database.
As such, there is no need for some 'blank' value to set to things (nor
would the value of the blank attribute determine if you can set the model
to that or not manually) - just use the proper unset value for whatever
you're setting.
--
Ticket URL: <http://code.djangoproject.com/ticket/5509#comment:1>
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
-~----------~----~----~----~------~----~------~--~---