mohit basantani
2018-11-13 05:16:52 UTC
Hello All,
I am new to Django and my problem is there are two tables Namely
Masterlist and Partlist. In masterlist i am uploading data using the
import export plugin and in my db I have created a foreign key with
refrence to partlist.
Partlist Table Columns
1. id
2. partlist_name - this is the name of the uploaded file
Now whenever i import the file, I want that first the filename should be
saved in the partlist table and then the id of that particular row is saved
in the masterlist table. But if I am doing so I am getting an error Column
'partlist_name': invalid literal for int() with base 10:
'Mastertable-2018-10-26 (2)(1).xls'
Please help as I am stuck with this!
I am new to Django and my problem is there are two tables Namely
Masterlist and Partlist. In masterlist i am uploading data using the
import export plugin and in my db I have created a foreign key with
refrence to partlist.
Partlist Table Columns
1. id
2. partlist_name - this is the name of the uploaded file
Now whenever i import the file, I want that first the filename should be
saved in the partlist table and then the id of that particular row is saved
in the masterlist table. But if I am doing so I am getting an error Column
'partlist_name': invalid literal for int() with base 10:
'Mastertable-2018-10-26 (2)(1).xls'
Please help as I am stuck with this!
--
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/7e9d602b-f055-415f-b9d9-abced80a51c3%40googlegroups.com.
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/7e9d602b-f055-415f-b9d9-abced80a51c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.