Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit c767e0f4fedabf050a8968b3b2cb68f0183683d7 1 parent de5ea0d
Adrian Holovaty authored November 07, 2005

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  django/models/core.py
4  django/models/core.py
@@ -11,6 +11,10 @@ class META:
11 11
         verbose_name_plural = _('sites')
12 12
         db_table = 'sites'
13 13
         ordering = ('domain',)
  14
+        admin = meta.Admin(
  15
+            list_display = ('domain', 'name'),
  16
+            search_fields = ('domain', 'name'),
  17
+        )
14 18
 
15 19
     def __repr__(self):
16 20
         return self.domain

0 notes on commit c767e0f

Please sign in to comment.
Something went wrong with that request. Please try again.