Re: Form Field's required

2009-06-16 Thread Joshua Partogi
Thanks Alex.

On Wed, Jun 17, 2009 at 9:14 AM, Alex Gaynor  wrote:

>
>
> On Tue, Jun 16, 2009 at 6:12 PM, Joshua Partogi wrote:
>
>> Dear all,
>>
>> I want to add an asteriks in the template for required Form Fields. What
>> is the instance attribute for it? I tried reading from
>> http://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fieldsbut
>>  could not find anything like it. I wonder how they do it in the django
>> admin app. Anybody have any idea about this?
>>
>> Thank you very much in advance.
>>
>>

-- 
Join Scrum8.com.

http://scrum8.com/member/jpartogi/
http://scrum8.com/blog/jpartogi/
http://twitter.com/scrum8

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Form Field's required

2009-06-16 Thread Alex Gaynor
On Tue, Jun 16, 2009 at 6:12 PM, Joshua Partogi wrote:

> Dear all,
>
> I want to add an asteriks in the template for required Form Fields. What is
> the instance attribute for it? I tried reading from
> http://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fieldsbut
>  could not find anything like it. I wonder how they do it in the django
> admin app. Anybody have any idea about this?
>
> Thank you very much in advance.
>
> --
> Join Scrum8.com.
>
> http://scrum8.com/member/jpartogi/
> http://scrum8.com/blog/jpartogi/
> http://twitter.com/scrum8
>
> >
>
{{ field.field.required }} is whether or not the field is required.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Form Field's required

2009-06-16 Thread Joshua Partogi
Dear all,

I want to add an asteriks in the template for required Form Fields. What is
the instance attribute for it? I tried reading from
http://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fieldsbut
could not find anything like it. I wonder how they do it in the django
admin app. Anybody have any idea about this?

Thank you very much in advance.

-- 
Join Scrum8.com.

http://scrum8.com/member/jpartogi/
http://scrum8.com/blog/jpartogi/
http://twitter.com/scrum8

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---