Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Import empty rows #2
Hey, that works fine, but only in a situation where the model does not have fields with the value "unique = True".
I tested a situation when the database is already one of the fields blank with the parameter "unique=True"
Therefore, I think a good solution would be to introduce a parameter that allowed to skip the already existing values.
By default, pyexcel give '' for empty cell but I think database treat null as empty. In your case, I guess it is because '' was given toexpenses_type and if '' is given at the second time, it will hit unique key problem. So, I suppose if pyexcel replace '' for None in your case, would it help?