I'm making a templatetag and would like to display some user specific information along with the output. I'm doing a check to see if the user has left a comment on an object:
user_comment = Comment.objects.filter(content_type=self.ct, obj_id=self.oid, user=request.user) But in my templatetag the request object does not exist. Is there any way I can get it or pass it in? The place I need it is the: class CommentFormNode(template.Node): but it could be passed from the parser: def do_comment_form(parser, token): Really, I just need the user id as related to the session (which comes in with the request) so maybe that's another way to get it? Any help is appreciated. Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---