Skip to content

Commit

Permalink
[#1379] Added search and filter for employment admin
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Apr 1, 2015
1 parent a4ccab4 commit 71e7d47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions akvo/rsr/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,8 @@ class KeywordAdmin(admin.ModelAdmin):
class EmploymentAdmin(admin.ModelAdmin):
model = get_model('rsr', 'Employment')
list_display = ('__unicode__', 'user', 'organisation', 'is_approved', 'country', 'job_title')
list_filter = ('is_approved', 'organisation')
search_fields = ('organisation__name', 'organisation__long_name', 'user__username')

def get_queryset(self, request):
if request.user.is_superuser or request.user.is_admin:
Expand Down

0 comments on commit 71e7d47

Please sign in to comment.