Это моя модель. Я пытаюсь добавить поле даты, но когда я запускаю миграции, я получаю эту ошибку «в parse_date match = date_re.match (value)». Я попытался удалить свои миграции, но все еще получаю эту ошибку
models.py
class Order(models.Model):
user = models.ForeignKey(User, null=True, on_delete=models.CASCADE)
quote_choices = ( ('Movie', 'Movie'),
('Inspiration', 'Inspiration'),
('Language', 'Language'),
)
quote = models.CharField(max_length =100, choices = quote_choices)
box_choices = (('Colors', 'Colors'),
('Crossover', 'Crossover'),
)
box = models.CharField(max_length = 100, choices = box_choices)
pill_choice = models.CharField(max_length=30)
shipping_tracking = models.CharField(max_length=30)
memo = models.CharField(max_length=100)
status_choices = (('Received', 'Received'),
('Scheduled', 'Scheduled'),
('Processing/Manufacturing', 'Processing/Manufacturing'),
('In Progress','In Progress'),
)
status = models.CharField(max_length = 100, choices = status_choices, default="In Progress")
manu_date = models.DateField(("Date"), default=datetime.date.today)
forms.py
class OrderForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
user = kwargs.pop('user', None)
super(OrderForm, self).__init__(*args, **kwargs)
if not user.is_superuser:
self.fields.pop('status')
class Meta:
model = Order
fields = '__all__'
widgets = {'manu_date': DateInput()}
exclude = ['user','date']