[Django]-TypeError: getattr(): attribute name must be string in Django

3👍

you need set column name(by your logic), for example created

 slug = models.SlugField(unique_for_date='created')

more details unique-for-date

Leave a comment