title: AttributeError: 'CharField' object has no attribute 'slugify' when creating slug in django
body: <p>I'm trying to have my django model automatically create a slug of the model name, but I get this error:</p>
  <pre><code>AttributeError: 'CharField' object has no attribute 'slugify'
  </code></pre>
  <p>This is my code:</p>
  <pre><code>from django.db import models
  from django.utils.text import slugify
  
  class school (models.Model):
      name = models.CharField(max_length=50)
      description = models.CharField(max_length=750)
      location = models.CharField(max_length=19, choices=location_choices)
      picture = models.URLField(max_length=200, default=&quot;https://i.ibb.co/0MZ5mFt/download.jpg&quot;)
      slug = models.SlugField(unique=True, default=name.slugify(), editable=False)
  </code></pre>