Revision df67421c snf-astakos-app/astakos/im/views.py
b/snf-astakos-app/astakos/im/views.py | ||
---|---|---|
769 | 769 |
request, |
770 | 770 |
queryset, |
771 | 771 |
template_name='im/astakosgroup_list.html', |
772 |
extra_context=dict( |
|
773 |
form=form, |
|
774 |
is_search=True |
|
775 |
) |
|
776 |
) |
|
772 |
extra_context=dict(form=form, |
|
773 |
is_search=True)) |
|
777 | 774 |
return render_response( |
778 | 775 |
template='im/astakosgroup_list.html', |
779 | 776 |
form=form, |
... | ... | |
781 | 778 |
is_search=False |
782 | 779 |
) |
783 | 780 |
|
781 |
@signed_terms_required |
|
782 |
@login_required |
|
783 |
def group_all(request, extra_context=None, **kwargs): |
|
784 |
if request.method != 'POST': |
|
785 |
return HttpResponseBadRequest(_('Bad method')) |
|
786 |
return object_list( |
|
787 |
request, |
|
788 |
AstakosGroup.objects.select_related().all(), |
|
789 |
template_name='im/astakosgroup_list.html', |
|
790 |
extra_context=dict(form=AstakosGroupSearchForm(), |
|
791 |
is_search=True)) |
|
792 |
|
|
784 | 793 |
|
785 | 794 |
@signed_terms_required |
786 | 795 |
@login_required |
Also available in: Unified diff