I am trying to populate data into the following model from a csv and using update_or_create() in a loop to do that.
class TargetPlace(models.Model):
name = models.CharField(max_length=100)
The csv may have some entries which have leading or trailing white spaces and I want to get rid of those.
I saw that CharField's in Django >=1.9 have a strip argument that takes care of this by default (since its True by default). I am using Django 1.10 but still seeing duplicate entries in the model (those with and without leading white spaces).
Does the strip argument not work that way?