If you are using 1.2, then you could make a TextField with an email validator. That gets bonus points for using a new feature :) http://docs.djangoproject.com/en/dev/ref/forms/validation/#using-validators
Alex On May 26, 8:24 am, Jonathan Hayward <christos.jonathan.hayw...@gmail.com> wrote: > Thanks! > > On Wed, May 26, 2010 at 5:32 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > > > > 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<django-users%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > → Jonathan Hayward, christos.jonathan.hayw...@gmail.com > → An Orthodox Christian author: theology, literature, et cetera. > → My award-winning collection is available for free reading online: > ☩ I invite you to visit my main site athttp://JonathansCorner.com/ -- 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.