Ticket #7819: patch.diff
File patch.diff, 1.4 KB (added by , 16 years ago) |
---|
-
django/contrib/comments/admin.py
1 2 1 from django.contrib import admin 2 from django.contrib.comments.models import Comment, FreeComment 3 3 4 4 5 class CommentAdmin(admin.ModelAdmin): 5 6 fieldsets = ( 6 7 (None, {'fields': ('content_type', 'object_id', 'site')}), -
django/contrib/sites/admin.py
1 2 1 from django.contrib import admin 2 from django.contrib.sites.models import Site 3 3 4 4 5 class SiteAdmin(admin.ModelAdmin): 5 6 list_display = ('domain', 'name') 6 7 search_fields = ('domain', 'name') -
django/contrib/flatpages/admin.py
1 2 1 from django.contrib import admin 2 from django.contrib.flatpages.models import FlatPage 3 from django.utils.translation import ugettext_lazy as _ 3 4 5 4 6 class FlatPageAdmin(admin.ModelAdmin): 5 7 fieldsets = ( 6 8 (None, {'fields': ('url', 'title', 'content', 'sites')}),