fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better ordering for tags
[redakcja.git]
/
apps
/
organizations
/
views.py
diff --git
a/apps/organizations/views.py
b/apps/organizations/views.py
index
24f2436
..
47aa5d3
100644
(file)
--- a/
apps/organizations/views.py
+++ b/
apps/organizations/views.py
@@
-7,6
+7,8
@@
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.http import Http404
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.http import Http404
+
+from organizations.filters import OrganizationFilterSet
from .forms import OrganizationForm, UserCardForm
from .models import Organization, Membership, UserCard
from .forms import OrganizationForm, UserCardForm
from .models import Organization, Membership, UserCard
@@
-120,6
+122,7
@@
def membership(request, pk):
def organizations(request):
def organizations(request):
+ f = OrganizationFilterSet(request.GET, queryset=Organization.objects.all())
return render(request, "organizations/organizations.html", {
return render(request, "organizations/organizations.html", {
- '
organizations': Organization.objects.all()
,
+ '
filter_set': f
,
})
})