I was did a small project to import file excel and show data it. I’m using django-import-export lib
In models.py I had student_id(unique =true)
How I show errors_message when I import another file excel had same id_student in data. I was try to take the id_student to compare with the data import in but seen like I do it worng.
Can some one help me.Link github if you want more detail: https://github.com/NVDungg/imexcel.git
You can use exists()
If you have better answer, please add a comment about this, thank you!