Thank you very much , I got it

On Wed, Aug 26, 2009 at 6:07 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:

>
> On Aug 26, 6:55 am, Apple <cnwe...@gmail.com> wrote:
> > hi , now I want to pass a parameter named user (user is a instance of
> > User) to the self_defined tags,could I do this ? I think the passed
> > parameter are all strings , is there a way to get its real type ?
> > thank you for your replying !
>
> You can use the template.Variable() class to access the real variable
> referenced the name you pass to the tag. See
>
> http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#passing-template-variables-to-the-tag
> --
> 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-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to