Django model AttributeError: 'str' object has no attribute 'clone'

two off my models in Django are getting the

AttributeError: 'str' object has no attribute 'clone' while a run makemigration command

    class Statuses(models.TextChoices):
        publish = _('publish')
        archive = _('archive')
        draft = _('draft')

    category = models.ForeignKey(BlogCategory, on_delete=models.DO_NOTHING, verbose_name=_("blog category"))
    title = models.CharField(max_length=64, null=False, blank=False, verbose_name=_("blog title"))
    slug = models.SlugField(null=False, blank=False, allow_unicode=True, verbose_name=_("blog slug"))
    intro = models.TextField(null=False, blank=False, verbose_name=_("blog introduction"))
    body = models.TextField(null=False, blank=False, verbose_name=_("blog body"))

    created = models.TimeField(auto_now_add=True, verbose_name=_("blog creation time"))
    pubdate = models.TimeField(auto_now=True, verbose_name=_("blog publish time"))

    status = models.CharField(max_length=12, choices=Statuses.choices, verbose_name=_("blog publish status"))

    class Meta:
        ordering = ['-pubdate']
        indexes = ['title']
        verbose_name = _('blog')
        verbose_name_plural = _('blogs')

and

class Products(models.Model):
    productName = models.CharField(max_length=32, blank=False, null=False, verbose_name=_("product name"))
    productImage = models.ImageField(upload_to='medias/images/products/')
    category = models.ForeignKey(ProductCategories, on_delete=models.DO_NOTHING, verbose_name=_("product category"))
    weights = models.ForeignKey(Weights, on_delete=models.DO_NOTHING, verbose_name=_("product weights"))
    package = models.ForeignKey(Packages, on_delete=models.DO_NOTHING, verbose_name=_("product package"))

    class Meta:
        ordering = ['productName']
        indexes = ['productName']
        verbose_name = _('product')
        verbose_name_plural = _('products')

and didn't find any good answer for the problem

Back to Top