[damned-lies] Fixed bad search field in Category admin
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fixed bad search field in Category admin
- Date: Mon, 7 Mar 2016 14:02:27 +0000 (UTC)
commit 3e703a0e88fa2c922a43b4a01d3a9d0a941648d1
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Mar 7 15:01:57 2016 +0100
Fixed bad search field in Category admin
stats/admin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/admin.py b/stats/admin.py
index 787efac..048c25d 100644
--- a/stats/admin.py
+++ b/stats/admin.py
@@ -122,7 +122,7 @@ class CategoryInline(admin.TabularInline):
extra = 1
class CategoryAdmin(admin.ModelAdmin):
- search_fields = ('name', 'branch__module__name')
+ search_fields = ('name__name', 'branch__module__name')
class ReleaseAdmin(admin.ModelAdmin):
list_display = ('name', 'status', 'weight', 'string_frozen')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]