title: How to use Field.disabled in Django
body: <p>I would like to have the slug input field be set to read only but can't seem to utilize &quot;Field.disabled&quot; properly. How can I do that in a simple Django form?</p>
  <p>This is my model</p>
  <pre><code>class Article(models.Model):
      title = models.CharField(max_length=100)
      slug = models.SlugField()
      body = models.TextField()
      thumb = models.ImageField(default='default.png', blank=True)
  </code></pre>
  <p>This is my forms.py</p>
  <pre><code>class CreateArticle(forms.ModelForm):
      class Meta:
          model = models.Article
          fields = ['title', 'body', 'slug', 'thumb']
  </code></pre>