diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-07 04:25:29 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-07 04:25:29 +0000 |
| commit | c767e0f4fedabf050a8968b3b2cb68f0183683d7 (patch) | |
| tree | 11e9e6ab30fa042c098650ccc8e844fb1fa14792 | |
| parent | de5ea0d87947cb813ed0696c949e3567c2924efb (diff) | |
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
| -rw-r--r-- | django/models/core.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
