Last active
February 9, 2016 14:54
-
-
Save dpnova/5225027 to your computer and use it in GitHub Desktop.
Adding reversion to the Base PageAdmin in Mezzanine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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