Re: Newforms: Can I do these?
On 2/12/07, johnny <[EMAIL PROTECTED]> wrote: > > One last thing forgot to ask: What about forms.ImageField? forms.FileField, but you have to do some coding on your own > > > > > -- Honza Kr�l E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Newforms: Can I do these?
One last thing forgot to ask: What about forms.ImageField? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Newforms: Can I do these?
yes $ sed -ne 's;^class \([a-zA-Z]\{1,\}\)(.*;\1;p' django/newforms/fields.py Field CharField IntegerField DateField TimeField DateTimeField RegexField EmailField URLField BooleanField NullBooleanField ChoiceField MultipleChoiceField ComboField MultiValueField SplitDateTimeField On 2/11/07, johnny <[EMAIL PROTECTED]> wrote: > > Can I create the following in newforms: > > forms.DateTimeField > forms.IntegerField > forms.FloatField you will have to use RegexField for this > forms.TextField > forms.LargeTextField this is a simple TextField with widget set to textarea > > > > > -- Honza Kr�l E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Newforms: Can I do these?
On Sun, 11 Feb 2007 17:43:44 -0500, johnny <[EMAIL PROTECTED]> wrote: > > Can I create the following in newforms: > > forms.DateTimeField yes > forms.IntegerField yes > forms.FloatField yes > forms.TextField try forms.CharField > forms.LargeTextField Not directly, but you can assign the Textarea widget to a CharField like so: foo = forms.CharField(widget = forms.Textarea()) For a list of all the fields available see the tests [1] starting about line 775. [1]: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/tests.py#L775 > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---