Exactly what I needed to know; thanks, works perfectly.  Now to massage the 
date display a little...

On Friday, November 14, 2014 2:54:29 PM UTC-5, Josh Cartmell wrote:
>
> Hey Michael, the last modified is actually already stored with the page.  
> Page inherits from Displayable and Displayable inherits from TimeStamped, 
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/models.py#L179
>
> TimeStamped has created and updated DateTimeFields.
>
> So in your template you could do something like:
>
> {{ page.updated }}
>
> Good luck!
>
> On Fri, Nov 14, 2014 at 2:29 PM, Michael Babcock <[email protected] 
> <javascript:>> wrote:
>
>> I'd like to add a "last modified" date to the bottom of my pages.  I see 
>> the Rich Text page already stores Published and Expires dates, but I'd like 
>> to automatically set an Updated date for when I make changes.
>>
>> I know its possible to modify Mezzanine itself to have this feature but 
>> could I make that change locally to my project or do I need to make it to 
>> the actual mezzanine files (as installed by pip in my virtualenv)?
>>
>> I'm fairly new to both Django and Mezzanine so if I'm missing something 
>> that's already implemented, please let me know.
>>
>> Thanks
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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