From 18cb1483893db4d927115abc1b8f50ec575bcc1f Mon Sep 17 00:00:00 2001 From: Jacob Hilker Date: Sun, 2 Feb 2014 17:06:41 -0500 Subject: [PATCH] add reversion handler to admin site for courses --- karmaworld/apps/courses/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/courses/admin.py b/karmaworld/apps/courses/admin.py index 902333b..e26ac25 100644 --- a/karmaworld/apps/courses/admin.py +++ b/karmaworld/apps/courses/admin.py @@ -3,6 +3,8 @@ # Copyright (C) 2012 FinalsClub Foundation """ Administration configuration for courses """ +import reversion + from django.contrib import admin from karmaworld.apps.courses.models import School @@ -10,7 +12,7 @@ from karmaworld.apps.courses.models import Course from karmaworld.apps.courses.models import Professor from karmaworld.apps.courses.models import ProfessorAffiliation -class CourseAdmin(admin.ModelAdmin): +class CourseAdmin(reversion.VersionAdmin, admin.ModelAdmin): """ an Admin handler for the Course model that handles fk search """ raw_id_fields = ('school',) autocomplete_lookup_fields = { -- 2.25.1