Hello,

I have the following view method:

def index(request):
    form = OpinionOptionForm(initial={'keyword': 'singtel',
                                      'start_date': 
datetime.today()-timedelta(days=7),
                                      'end_date':  datetime.today(),
                                      'resolution': '8-hour',
                                      'influence': 'all',
                                      'sentiment_type': 'pos-neg'})             
    
    return render_to_response('r2/opinion/index.html',
                              {'form': form},
                              context_instance=RequestContext(request))

i know i can do some queryset passing into the render_to_response method so i 
can use that queryset list in my template.

How do i go about doing that?

The queryset i want to pass is Keywords that is imported from r2.models.

Thank you


Best Regards,

Stanwin Siow



-- 
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