Skip to content

Instantly share code, notes, and snippets.

@dpnova
Last active February 9, 2016 14:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpnova/5225027 to your computer and use it in GitHub Desktop.
Save dpnova/5225027 to your computer and use it in GitHub Desktop.
Adding reversion to the Base PageAdmin in Mezzanine.
from django.contrib import admin
import reversion
from mezzanine.pages.admin import PageAdmin
from mezzanine.pages.models import Page
class NewPageAdmin(PageAdmin, reversion.VersionAdmin):
pass
admin.site.unregister(Page)
admin.site.register(Page, NewPageAdmin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment