Discussion:
Foreign key data saving issue
mohit basantani
2018-11-13 05:34:55 UTC
Permalink
Hello I am new to django i have two tables namely Mastertable and Partlist

Partlist columns:

1. id
2. partlist_name

I am using the imort-export plugin to import the data in the mastertable
where i have created a foreign key referred to partlist table, I want
whenever i import any xls file first data would save to the partlist table
and i will get the id of the inserted row and then the data should be saved
in the mastertable. Please help!
--
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+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fd74c2ec-9969-493e-b0c9-2aa05f6f1cc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
amit pant
2018-11-14 05:55:53 UTC
Permalink
could you share your progress then we can find what exactly you want.


On Tue, Nov 13, 2018 at 6:14 PM mohit basantani <
Post by mohit basantani
Hello I am new to django i have two tables namely Mastertable and Partlist
1. id
2. partlist_name
I am using the imort-export plugin to import the data in the mastertable
where i have created a foreign key referred to partlist table, I want
whenever i import any xls file first data would save to the partlist table
and i will get the id of the inserted row and then the data should be saved
in the mastertable. Please help!
--
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
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/fd74c2ec-9969-493e-b0c9-2aa05f6f1cc2%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/fd74c2ec-9969-493e-b0c9-2aa05f6f1cc2%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF2Ah_GKp4V9omg3sGWt3ucYv7SqEv_OokejB3QpqfEeZzA3RA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...