Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 adrianholovaty authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/models/core.py
4 django/models/core.py
View
@@ -11,6 +11,10 @@ class META:
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
Please sign in to comment.
Something went wrong with that request. Please try again.