Foreign key data saving issue

23 views
Skip to first unread message

mohit basantani

unread,
Nov 13, 2018, 7:45:18 AM11/13/18
to Django users
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! 

amit pant

unread,
Nov 14, 2018, 12:56:47 AM11/14/18
to django...@googlegroups.com
could you share your progress then we can find what exactly you want.


--
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.
Reply all
Reply to author
Forward
0 new messages