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
This commit is contained in:
Adrian Holovaty 2005-11-07 04:25:29 +00:00
parent de5ea0d879
commit c767e0f4fe
1 changed files with 4 additions and 0 deletions

View File

@ -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