On Fri, Mar 6, 2009 at 12:57 PM, rajeesh <rajeeshrn...@gmail.com> wrote: > > You may change the save_model() method of corresponding AdminClass for > that: > e.g, to set the attribute 'a' of model 'Book' , write inside > BookAdmin.save_model() something like this: > > obj.a = form.cleaned_data['another_key'] * 2 > obj.save()
Won't this only effect admin? I'm looking for a general solution that I can work into any form. Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---