[mezzanine-users] Modifying behavior of TimeStamped `updated` timestamp for subclasses

2018-04-13 Thread Chris Hawes
I want to display a timestamp on each BlogPost showing when the post was last updated. My first attempt at this was to just show the `updated` timestamp from the TimeStamped superclass. However, this timestamp is bumped up every time the post is saved for any reason. For instance if a user

Re: [mezzanine-users] Modifying behavior of TimeStamped `updated` timestamp for subclasses

2018-04-13 Thread Eduardo Rivas
Haven't tried this but I think it should work. It is an extra DB table but doesn't require monkey patching anything and it can leave in its own app: Create a new model called LastUpdate or TimeStamp, with a datetime field and a generic relation