Closed apixon closed 8 years ago
solved ..
in view def get_context_data(self, kwargs): context = super(ChannelsVideoView, self).get_context_data(kwargs) extra_kwargs = {'page': self.kwargs['page'], 'slug': self.kwargs['slug']} context['extra_kwargs'] = extra_kwargs return context
in temple {% bootstrap_paginate page_obj range=7 centered="true" show_first_last="true" url_view_name="channels_video_view" url_extra_kwargs=extra_kwargs %}
Example url http://example.com/channels/new-{{slug}}-{{page}}.html
I am using your django pagination. but m getting error http://prntscr.com/8odepb when I used prams named url_extra_args - url_extra_kwargs - I just upload code at this url. please check it. https://github.com/apixon/python/blob/master/pagination.txt
I just want to know how to use these 2 option params within pagination script becuase there's no description or example to set these 2 arguments url_extra_args - url_extra_kwargs -
is that correct or not ? {% bootstrap_paginate page_obj range=7 centered="true" show_first_last="true" url_view_name="channels_video_view" url_extra_kwargs="slug" url_extra_args="apple" } %}