[extensions-web] extensions: Add some search fields in the admin
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Add some search fields in the admin
- Date: Wed, 26 Sep 2012 13:15:08 +0000 (UTC)
commit d74fe9da27c6fc8a247b48b8ce131fc43df134be
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 26 10:15:02 2012 -0300
extensions: Add some search fields in the admin
sweettooth/extensions/admin.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/extensions/admin.py b/sweettooth/extensions/admin.py
index 96e9c0f..f4acc9b 100644
--- a/sweettooth/extensions/admin.py
+++ b/sweettooth/extensions/admin.py
@@ -36,6 +36,7 @@ class ExtensionVersionInline(admin.TabularInline):
class ExtensionAdmin(admin.ModelAdmin):
list_display = 'name', 'uuid', 'num_versions', 'creator',
list_display_links = 'name', 'uuid',
+ search_fields = ('uuid', 'name')
def num_versions(self, ext):
return ext.versions.count()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]