Revision 2a965273 snf-astakos-app/astakos/im/views.py
b/snf-astakos-app/astakos/im/views.py | ||
---|---|---|
1477 | 1477 |
@signed_terms_required |
1478 | 1478 |
@login_required |
1479 | 1479 |
def project_list(request): |
1480 |
q = ProjectApplication.objects.filter(owner=request.user) |
|
1481 |
q |= ProjectApplication.objects.filter( |
|
1482 |
project__in=request.user.projectmembership_set.values_list('project', flat=True) |
|
1483 |
) |
|
1480 | 1484 |
return object_list( |
1481 | 1485 |
request, |
1482 |
ProjectApplication.objects.all(),
|
|
1486 |
q,
|
|
1483 | 1487 |
paginate_by=PAGINATE_BY_ALL, |
1484 | 1488 |
page=request.GET.get('page') or 1, |
1485 | 1489 |
template_name='im/projects/project_list.html', |
Also available in: Unified diff