I am having different URLs configuration. same view is called for two URLs
based on **kwargs decision is made what to do? In one of case I need to get
result of all related objects which is tagged with given keyword. I found
another way to do achieve same using function based view.
On Thursday,
On Wednesday, 4 November 2015 20:51:53 UTC, sonu kumar wrote:
>
> class based views are as below
>
> class TagList(TemplateView):
>
> def get_context_data(self, **kwargs):
>
> ...
>
> qlist = QueList.as_view()(self.request, **kwargs)
> print qlist
>
> ...
>
2 matches
Mail list logo