Old thread but I've just implemented this and successfully deployed it to a 
commercial site.

In short, I redefined the PageAdmin class as DefaultPageAdmin and then 
assigned either that or a specialised VersionedPageAdmin to PageAdmin 
depending upon whether or not django-reversion is loaded. I also 
conditionally included the reversion middleware so that front end editing 
creates versions too.

The modified admin file can be seen here 
<https://github.com/cccs-web/mezzanine/commit/e8e460010ac6ed27a7fd093caa5e8b07f46862e7>
 
and the modified project template settings file here 
<https://github.com/cccs-web/mezzanine/commit/589db7dcfa3a83964ca993356971c239cfdc4794>.
 
Unfortunately, I don't think I can put this up for Stephen as a pull 
request because my fork is of kniyl's model translation stuff. 
Nevertheless, applying these changes should be pretty straightforward if 
you need them.

I've not modified the template to include the 'restore deleted pages' 
option because there are complications regarding the restoration of pages 
where the 'parent' page has been deleted that I've not yet had to address. 
If necessary I'd probably just set it up to restore the latest version of 
any deleted parents when restoring.

On Tuesday, 6 November 2012 21:06:59 UTC+10, Christian Bahls wrote:
>
> Similar question from here :)
>
> Christian
>
> On Tue, Nov 6, 2012 at 8:23 AM, Ahmad Khayyat <[email protected] 
> <javascript:>> wrote:
>
>> On Wednesday, October 24, 2012 4:00:01 PM UTC-4, Stephen McDonald wrote:
>>  
>>
>>> Perhaps this logic needs to sit around the DisplayableAdmin class? Off 
>>> the top of my head pages and the blog use that.
>>>
>>
>> Did anything come out of this?
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to