On Wed, Mar 11, 2009 at 4:47 AM, Alfonso <allanhender...@gmail.com> wrote:
> > Hi there, > > I've got a few tax calculations running on a custom save method within > admin which work great but I need to build in the option to override > these calculations manually. > > So I have 2 questions - is this what I'd use a post save method for > (would I move the save calculations to a pre-save and add this manual > override function to save method) and, is there a way to detect a > manual change to a field in django? A 'if not changed [manually] then > do this' kind of concept? > > Thanks > > > What I would do is overide save() and add an extra parameter "dont_calculate" or something that is False by default but that you can pass in when you don't want the calculations to occur. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---