Re: making history

2011-08-11 Thread Mike Dewhirst
Thanks Andre and everyone. It is holding me up too much at the moment. I've put it on the wish-list for post-release revision. I've kept all your suggestions and will investigate. Thanks again. Mike On 11/08/2011 10:40pm, Andre Terra wrote: I have played around with django-audit-log for a wh

Re: making history

2011-08-11 Thread Andre Terra
I have played around with django-audit-log for a while, and so far it works great. However, I do need to work on saving the records to a separate db, as Shawn suggested. Fwiw, there's a page on the wiki about audit trail/logs, which, albeit outdated, should prove helpful. Cheers, AT On 8/10/11,

Re: making history

2011-08-10 Thread Mike Dewhirst
On 11/08/2011 9:51am, Shawn Milochik wrote: Mike, I'm doing something similar in another project. I created a sublass of models.Model and am using that throughout the project, which makes it much easier. I'm sub-classing models.Model to include created, updated and updated_by fields which is

Re: making history

2011-08-10 Thread Shawn Milochik
Mike, I'm doing something similar in another project. I created a sublass of models.Model and am using that throughout the project, which makes it much easier. On the post-save of any subclass of my custom model, I serialize the model's fields as a JSON object and store it in a text field of my a

Re: making history

2011-08-10 Thread Mike Dewhirst
On 10/08/2011 10:37pm, Shawn Milochik wrote: I do essentially that, using a post_save signal and dumping the serialized model instance to MongoDB with datestamp, etc. The relevant part is this (after importing Django's serializers): serialized_object = serializers.serialize( "jso

Re: making history

2011-08-10 Thread Shawn Milochik
I do essentially that, using a post_save signal and dumping the serialized model instance to MongoDB with datestamp, etc. The relevant part is this (after importing Django's serializers): serialized_object = serializers.serialize( "json", sender.objects.filter(pk = instan

Re: making history

2011-08-10 Thread Mike Dewhirst
On 10/08/2011 7:08pm, Subhranath Chunder wrote: You could probably consider using post_save signals and make things a bit little more generic. Thanks - I'll read up on that ... Cheers Mike On Wed, Aug 10, 2011 at 1:38 PM, Mike Dewhirst > wrote: I want t

Re: making history

2011-08-10 Thread Subhranath Chunder
You could probably consider using post_save signals and make things a bit little more generic. On Wed, Aug 10, 2011 at 1:38 PM, Mike Dewhirst wrote: > I want to update a history record whenever a particular record changes. > > Is it reasonable to call a method from within the save method of a mo