def select_from_on_sale_weekly(request, year=None, week=None): issues_on_sale, context = do_on_sale_weekly(request, year, week) if context == None: return issues_on_sale data = {'issue': True, 'allowed_selects': ['issue'], 'return': add_selected_issues_to_collection} select_key = store_select_data(request, None, data) context.update({'select_key': select_key, 'multiple_selects': True, 'item_name': 'issue', 'plural_suffix': 's', 'no_bulk_edit': True, 'all_pre_selected': True, 'heading': 'Issues' }) return paginate_response(request, issues_on_sale, 'gcd/status/issues_on_sale.html', context, per_page=max(1,issues_on_sale.count()))
def select_from_on_sale_weekly(request, year=None, week=None): issues_on_sale, context = do_on_sale_weekly(request, year, week) if context is None: return issues_on_sale data = {'issue': True, 'allowed_selects': ['issue'], 'return': add_selected_issues_to_collection} select_key = store_select_data(request, None, data) context.update({'select_key': select_key, 'multiple_selects': True, 'item_name': 'issue', 'plural_suffix': 's', 'no_bulk_edit': True, 'all_pre_selected': True, 'heading': 'Issues' }) return paginate_response(request, issues_on_sale, 'gcd/status/issues_on_sale.html', context, per_page=max(1, issues_on_sale.count()))