Sure, but I don't think that use case should take priority. It's not much 
work to type an empty string into the questioner if that's what you want. 
If we remove the prompt, it's significantly more work (editing a migration 
file or using RunPython) for a developer to set a non-empty value.

On Friday, September 9, 2016 at 7:19:37 PM UTC-4, Jarek Glowacki wrote:
>
> Instances created afterwards, via `MyModel.objects.create()`, with this 
> field unset won't pass form validation either.
> The use case is where this field is not expected to appear on a Django 
> form.
>
> On Friday, September 9, 2016 at 11:58:38 PM UTC+10, Tim Graham wrote:
>>
>> If blank=False, then a new column with a non-blank value means that all 
>> existing objects won't pass form validation. Therefore, I don't see why a 
>> prompt for a value isn't helpful.
>>
>> On Friday, September 9, 2016 at 6:42:02 AM UTC-4, Jarek Glowacki wrote:
>>>
>>> I made a rant/ticket regarding the hidden usage of `blank` here: #27197 
>>> <https://code.djangoproject.com/ticket/27197#ticket>.
>>>
>>> In short, I don't think that `blank` should dictate whether or not the 
>>> migration questioner runs.
>>> Building on this, I don't think it should run for for string-type fields 
>>> at all. If they have `default` set, use that for existing rows. Else if 
>>> they have `null=True`, set existing rows to `NULL`. Else, set existing rows 
>>> to empty string.
>>>
>>> See linked rant/ticket for some (hopefully) compelling arguments..
>>>
>>> Thoughts?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8377b6eb-8a2d-4991-988b-50ec93ae7654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to