Hello World,

I have doubt for that's why I come here.

If one can clear my doubt it would be so helpful.

Suppose, I have a table 3 table with foreign key of in each table.

Table 1
 FK of table 2

Table 2
 FK of table 3

Table 3
 FK of another table


Now, what I am doing is

t1 = Table1.objects.get().first()
t1.table_2.table_3.anyrow = "new value"
t1.save()

Then,

passing the t1 object to another function and printing the value of anyrow 
of table_3.

What it will print?
Is it right? or Wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/af9bbdac-50e5-4da9-bfce-c8135fb40213%40googlegroups.com.

Reply via email to