get_direction_descr does something like this: def get_direction_descr(nod_id1, nod_id2): cursor = connection.cursor() cursor.execute("SELECT GetDirectionDescr("+str(nod_id1)+","+str(nod_id2)+") from sys.dual") result = cursor.fetchall() return result[0][0]
and get_vrd_code something similar. I shouldn't save what is being to returned to the db compared to get_vrd_id and get_direction_db. The returns of the last two need to be calculated according to a user's choices(the args) and saved to fields of my model while not being displayed on the template. I don't know if I could do it somehow different. For get_vrd_code and get_direction_descr that have the same args with the previous mentioned, I just want the returns to be displayed on the template and since the args are passed dynamically I thought that I can maybe use the same way to get the returns since the args are available to that point in save(). But now even if I don't know how I can sense that I should use ajax for that. > -- 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.