El mié, 10-03-2010 a las 17:28 -0500, Shawn Milochik escribió: > I think you missed my point, or I explained it badly. > > 1. In makeOrder, change i.save() to i.save(reorder = False). > > 2. Change the save function to something like the following > (untested): > > def save(self, *args, **kwargs): > > do_ordering = kwargs.pop('reorder', True) > > super(Subject, self).save(*args, **kwargs) > > if do_ordering: > self.makeOrder() > > > This way, the makeOrder function will be called every time an instance > is saved, *except* what that save was called from the makeOrder > function. This is exactly what you're asking for. > > Shawn >
Hımm.. That's the point. Perfecto.. Gracias Shawn.. I am learning... Thanks.. -- Ali Rıza -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.