[damned-lies] Add username search field in Role admin
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add username search field in Role admin
- Date: Fri, 26 Jan 2018 10:23:50 +0000 (UTC)
commit 4b5986e7146bf3ab6e93802960b72af247aaca5a
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Dec 18 10:08:14 2017 +0100
Add username search field in Role admin
teams/admin.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/teams/admin.py b/teams/admin.py
index 34d95c5..ba42285 100644
--- a/teams/admin.py
+++ b/teams/admin.py
@@ -24,7 +24,10 @@ class TeamAdmin(admin.ModelAdmin):
class RoleAdmin(admin.ModelAdmin):
- search_fields = ('person__first_name', 'person__last_name', 'team__description', 'role')
+ search_fields = (
+ 'person__first_name', 'person__last_name', 'person__username',
+ 'team__description', 'role',
+ )
admin.site.register(Team, TeamAdmin)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]