In my models.py I override the save method like this: def save(self, *args, **kwargs): self.directiondb = get_direction_db(self.nod_id1.id, self.nod_id2.id) get_direction_descr(self.nod_id1.id, self.nod_id2.id) get_vrd_code(self.nod_id1.id, self.nod_id2.id) self.vrd_id = get_vrd_id(self.nod_id1.id, self.nod_id2.id) super(Webrequests, self).save(*args, **kwargs)
and it works fine. Is it now possible what get_direction_descr() and get_vrd_code() return to be displayed on the template on the fly just after the user selects nod_id1 and nod_id2 from a dropdown list? Or how I could accomplish sth like this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ii_PAXLMFyoJ. 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.