From: Jacob Hilker Date: Sun, 2 Feb 2014 22:06:41 +0000 (-0500) Subject: add reversion handler to admin site for courses X-Git-Tag: release-20150131~178^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=18cb1483893db4d927115abc1b8f50ec575bcc1f;p=oweals%2Fkarmaworld.git add reversion handler to admin site for courses --- 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 = {