[Answered ]-Attribute Error: str object – has no attribute days. Attempting to migrate my model

1👍

Default value for DateField/TimeField/DateTimeField should be instance of datetime datetime or date or time. I think in some cases you are trying to get default value of that fields, and from default you are getting string, not datetime object

Leave a comment