Ticket #10583: id_shown_in_sites_admin.diff

File id_shown_in_sites_admin.diff, 508 bytes (added by Justin Lilly, 16 years ago)

Adds the ID attribute on the list view of all sites

  • django/contrib/sites/admin.py

    diff --git a/django/contrib/sites/admin.py b/django/contrib/sites/admin.py
    index 2442c24..683851e 100644
    a b from django.contrib.sites.models import Site  
    33
    44
    55class SiteAdmin(admin.ModelAdmin):
    6     list_display = ('domain', 'name')
     6    list_display = ('domain', 'name', 'id')
    77    search_fields = ('domain', 'name')
    88
    9 admin.site.register(Site, SiteAdmin)
    10  No newline at end of file
     9admin.site.register(Site, SiteAdmin)
Back to Top