Changeset 7953 for django/branches/newforms-admin/django/contrib/sites
- Timestamp:
- 07/18/08 15:23:02 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/sites/models.py
r7730 r7953 50 50 except KeyError: 51 51 pass 52 53 # Register the admin options for these models.54 # TODO: Maybe this should live in a separate module admin.py, but how would we55 # ensure that module was loaded?56 57 from django.contrib import admin58 59 class SiteAdmin(admin.ModelAdmin):60 list_display = ('domain', 'name')61 search_fields = ('domain', 'name')62 63 admin.site.register(Site, SiteAdmin)64 52 65 53 class RequestSite(object):
