On May 25, 10:49 pm, Jonathan Hayward
<christos.jonathan.hayw...@gmail.com> wrote:
> For CharField, EmailField, URLField, etc., is VARCHAR implementation
> (meaning a fixed limit on length) absolutely non-negotiable, or there a way
> to make e.g. a CharField that won't truncate if you cross some arbitrary
> length?
>
> (If you don't specify a length, does it assign a default length, or use TEXT
> instead of VARCHAR so that a field of indefinite length is accommodated,
> resources permitting?)

EmailField is a subclass of CharField, so it always uses a varchar. As
the documentation notes, the default length if you don't specify one
is 75.

If you really want an email field based on TEXT, you could subclass
EmailField with a get_internal_type method that returns 'TextField'.
--
DR.

-- 
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