Re: save_model and how to ignore any changes to an object

2008-10-23 Thread Malcolm Tredinnick
On Sun, 2008-10-19 at 10:21 -0700, Markos Gogoulos wrote: > hi all. When I edit an object on django admin and press save, I want > the object NOT to be saved, but instead create another object that > contains any changes (I want to be able to review it later). So the > original object has to be u

Re: save_model and how to ignore any changes to an object

2008-10-20 Thread Markos Gogoulos
Excellent, many thanks TiNo! On Oct 20, 12:39 am, TiNo <[EMAIL PROTECTED]> wrote: > In django admin, there is a save_as option. > > seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#save-as > > You could also save revisions of objects. > Check:http://code.djangoproject.com/wiki/FullHi

Re: save_model and how to ignore any changes to an object

2008-10-19 Thread TiNo
In django admin, there is a save_as option. see http://docs.djangoproject.com/en/dev/ref/contrib/admin/#save-as You could also save revisions of objects. Check: http://code.djangoproject.com/wiki/FullHistory http://code.google.com/p/django-reversion/ http://code.google.com/p/django-history/ Good

save_model and how to ignore any changes to an object

2008-10-19 Thread Markos Gogoulos
hi all. When I edit an object on django admin and press save, I want the object NOT to be saved, but instead create another object that contains any changes (I want to be able to review it later). So the original object has to be unchanged. I tried with this: def save_model(self, request, obj, fo