From 96cde5cc9408ec8b9c8adb69c59bf1b4b267d07a Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sun, 7 Jul 2013 15:43:43 +0200 Subject: [PATCH] example admin2 file cleanup --- example/blog/admin2.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/example/blog/admin2.py b/example/blog/admin2.py index 2cb9754..f6a9472 100644 --- a/example/blog/admin2.py +++ b/example/blog/admin2.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # Import your custom models -from django.contrib.auth.models import Group, User from django.contrib import messages from django.utils.translation import ugettext_lazy @@ -10,7 +9,7 @@ from djadmin2.actions import DeleteSelectedAction # Import your custom models from .actions import CustomPublishAction -from .models import Post, Comment, Event, EventGuide +from .models import Post, Comment class CommentInline(djadmin2.Admin2Inline): @@ -40,12 +39,7 @@ class CommentAdmin(djadmin2.ModelAdmin2): list_filter = ['post', ] -class EventAdmin(djadmin2.ModelAdmin2): - list_display = ('date',) - - # Register each model with the admin djadmin2.default.register(Post, PostAdmin) djadmin2.default.register(Comment, CommentAdmin) -djadmin2.default.register(Event, EventAdmin) -djadmin2.default.register(EventGuide) +