On Tuesday, 9 August 2011 02:33:47 UTC+1, oops wrote: > > Hi, > > May be you miss understanted my meaning. > > I just want to get the current user object in a normal .py file out of > views. > > And this file just offer some data according to different user. > > Do you have any methods to get the goal? > > thank you > > regards, > kejun >
No, Tom understood you fine, and his answer was quite clear. Get the user from the template context into your tag, and pass it from there into the list function. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/LwpPt4GXW8sJ. 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.