From c767e0f4fedabf050a8968b3b2cb68f0183683d7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 7 Nov 2005 04:25:29 +0000 Subject: [PATCH] Fixed #669 -- core.Site objects are now editable in the admin git-svn-id: http://code.djangoproject.com/svn/django/trunk@1119 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/models/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django/models/core.py b/django/models/core.py index c4327ee649..2c4399bfa7 100644 --- a/django/models/core.py +++ b/django/models/core.py @@ -11,6 +11,10 @@ class Site(meta.Model): verbose_name_plural = _('sites') db_table = 'sites' ordering = ('domain',) + admin = meta.Admin( + list_display = ('domain', 'name'), + search_fields = ('domain', 'name'), + ) def __repr__(self): return self.domain