Model.py
class Order(models.Model):
customerID = models.CharField(max_length=300, blank=True, null=True)
osm_bol = models.CharField(max_length=300, blank=True, null=True)
.....
.....
def __str__(self):
return self.customerID
Resouces.py
class NewOrders(resources.ModelResource):
osm_bol = Field(attribute='osm_bol', column_name='Client Track ID')
class Meta:
model = Order
fields = ('osm_bol')
Exel Sheet Column This is the Column that i want to import in my model
Problem the problem is i have the column name "Client Track ID" but in my model the name of attribute is "osm_bol" for the same field. when i import the file it shows nothing in "osm_bol" field. i mean its shows empty field. how can i fix it?