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:
parent
de5ea0d879
commit
c767e0f4fe
|
@ -11,6 +11,10 @@ class Site(meta.Model):
|
||||||
verbose_name_plural = _('sites')
|
verbose_name_plural = _('sites')
|
||||||
db_table = 'sites'
|
db_table = 'sites'
|
||||||
ordering = ('domain',)
|
ordering = ('domain',)
|
||||||
|
admin = meta.Admin(
|
||||||
|
list_display = ('domain', 'name'),
|
||||||
|
search_fields = ('domain', 'name'),
|
||||||
|
)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.domain
|
return self.domain
|
||||||
|
|
Loading…
Reference in New Issue