Ticket #7819: patch.diff

File patch.diff, 1.4 KB (added by Rajesh Dhawan, 16 years ago)

Adding other imports missed by changeset [7953] - flatpages and comments

  • django/contrib/comments/admin.py

     
    1 
    21from django.contrib import admin
     2from django.contrib.comments.models import Comment, FreeComment
    33
     4
    45class CommentAdmin(admin.ModelAdmin):
    56    fieldsets = (
    67        (None, {'fields': ('content_type', 'object_id', 'site')}),
  • django/contrib/sites/admin.py

     
    1 
    21from django.contrib import admin
     2from django.contrib.sites.models import Site
    33
     4
    45class SiteAdmin(admin.ModelAdmin):
    56    list_display = ('domain', 'name')
    67    search_fields = ('domain', 'name')
  • django/contrib/flatpages/admin.py

     
    1 
    21from django.contrib import admin
     2from django.contrib.flatpages.models import FlatPage
     3from django.utils.translation import ugettext_lazy as _
    34
     5
    46class FlatPageAdmin(admin.ModelAdmin):
    57    fieldsets = (
    68        (None, {'fields': ('url', 'title', 'content', 'sites')}),
Back to Top