The Django docs suggest "Avoid using null on string-based fields such
as CharField and TextField unless you have an excellent reason."

ImageField, EmailField, FileField, FilePathField, IPAddressField,
SlugField, URLField, XMLField are also a string-based fields at the db
level, so am I right in assuming that null=True is best avoided in
these case also, "unless you have an excellent reason."?

I am hoping Django has code to deal with the empty string value in
these fields. For example, I am hoping that Django understands that an
empty string in an ImageField means there is no corresponding image.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to