Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

newforms-admin: Fixed #7819 -- Added missing imports to contrib admin…

….py modules from [7953]. Thanks rajeshdhawan for catching this.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aaff207f81b716f1807a7184bab95ebfb36062db 1 parent 6689300
@brosner brosner authored
View
3  django/contrib/comments/admin.py
@@ -1,5 +1,6 @@
-
from django.contrib import admin
+from django.contrib.comments.models import Comment, FreeComment
+
class CommentAdmin(admin.ModelAdmin):
fieldsets = (
View
4 django/contrib/flatpages/admin.py
@@ -1,5 +1,7 @@
-
from django.contrib import admin
+from django.contrib.flatpages.models import FlatPage
+from django.utils.translation import ugettext_lazy as _
+
class FlatPageAdmin(admin.ModelAdmin):
fieldsets = (
View
3  django/contrib/sites/admin.py
@@ -1,5 +1,6 @@
-
from django.contrib import admin
+from django.contrib.sites.models import Site
+
class SiteAdmin(admin.ModelAdmin):
list_display = ('domain', 'name')
Please sign in to comment.
Something went wrong with that request. Please try again.