diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-07-18 20:23:02 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-07-18 20:23:02 +0000 |
| commit | efc84a8a6348c9932a8a1bd14e7a30ba272df648 (patch) | |
| tree | f9249ec82a520cb45cbcb973bc0fe5b1eb46dedb /django/contrib/sites/models.py | |
| parent | dd5197f081b6f0cac77721f24563b05005a686fb (diff) | |
newforms-admin: Moved contrib ModelAdmin classes to an admin.py file in their respective apps. This is allowed since [7872].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/sites/models.py')
| -rw-r--r-- | django/contrib/sites/models.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py index 5f06333ae8..c44e5ce11f 100644 --- a/django/contrib/sites/models.py +++ b/django/contrib/sites/models.py @@ -49,18 +49,6 @@ class Site(models.Model): del(SITE_CACHE[pk]) except KeyError: pass - -# Register the admin options for these models. -# TODO: Maybe this should live in a separate module admin.py, but how would we -# ensure that module was loaded? - -from django.contrib import admin - -class SiteAdmin(admin.ModelAdmin): - list_display = ('domain', 'name') - search_fields = ('domain', 'name') - -admin.site.register(Site, SiteAdmin) class RequestSite(object): """ |
