[extensions-web] extensions: Make the user field into a raw field
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Make the user field into a raw field
- Date: Wed, 26 Sep 2012 13:19:55 +0000 (UTC)
commit 2aa415cae1cb7ed0bb2b7fdaf51d9d5eaceaa768
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 26 10:19:35 2012 -0300
extensions: Make the user field into a raw field
It's a bit annoying having to navigate through a 20,000 line combobox.
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 f4acc9b..2f6cf0a 100644
--- a/sweettooth/extensions/admin.py
+++ b/sweettooth/extensions/admin.py
@@ -37,6 +37,7 @@ class ExtensionAdmin(admin.ModelAdmin):
list_display = 'name', 'uuid', 'num_versions', 'creator',
list_display_links = 'name', 'uuid',
search_fields = ('uuid', 'name')
+ raw_id_fields = ('user',)
def num_versions(self, ext):
return ext.versions.count()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]