Can any one please look at the below piece of code to create table/class in models.py. I need these column names as I plan to auto upload the table values via excel on external location automatically. Hence dont want to change the column names. I have tried adding single quotes arround the column names with special characters.
Could you please help me create the below table/class. Currently it is indicating syntax error. I have got another class called Number for different app under the same project. Not sure if that is an issue.
from django.db import models
class Errors(models.Model):
'S/O#' = models.IntegerField(max_length=10)
Line Number = models.IntegerField()
'S/O' Type = models.CharField(max_length=5)
Error Detail = models.CharField(max_length=50)
Comments = models.TextField()
'Incident#' = models.CharField(max_length=10)
Assigned To = models.CharField(max_length=10)
Issue Status = models.CharField(max_length=15)
Action = models.CharField(max_length=20)
Thanks