Revision 207de855 snf-astakos-app/astakos/im/views.py

b/snf-astakos-app/astakos/im/views.py
641 641

  
642 642
@signed_terms_required
643 643
@login_required
644
def group_search(request, queryset=EmptyQuerySet(), extra_context={}, **kwargs):
644
def group_search(request, extra_context={}, **kwargs):
645 645
    join_forms = {}
646 646
    if request.method == 'GET':
647 647
        form = AstakosGroupSearchForm()
......
656 656
                join_forms[g.name] = f(dict(group=g,
657 657
                                            person=request.user,
658 658
                                            date_requested=datetime.now().strftime("%d/%m/%Y")))
659
    return object_list(request,
660
                        queryset,
661
                        template_name='im/astakosgroup_list.html',
662
                        extra_context=dict(form=form, is_search=True, join_forms=join_forms))
659
            return object_list(request,
660
                                queryset,
661
                                template_name='im/astakosgroup_list.html',
662
                                extra_context=dict(form=form, is_search=True, join_forms=join_forms))
663
    return render_response(template='im/astakosgroup_list.html',
664
                            form = form,
665
                            context_instance=get_context(request))
663 666

  
664 667
@signed_terms_required
665 668
@login_required

Also available in: Unified diff