<pre><code>class Foo(models.Model):
    title = models.CharField(max_length=20)
    slug = models.SlugField()
</code></pre>

<p>Is there a built-in way to get the slug field to autopopulate based on the title? Perhaps in the Admin and outside of the Admin.</p>

For pre-1.0:
```
```
slug = models.SlugField(prepopulate_from=('title',))
```
```
should work just fine
For 1.0, use
camflan's