Skip to content

Instantly share code, notes, and snippets.

@leydson-vieira
Created March 10, 2017 16:41
Show Gist options
  • Save leydson-vieira/52d86dad011983b3c180775809a09354 to your computer and use it in GitHub Desktop.
Save leydson-vieira/52d86dad011983b3c180775809a09354 to your computer and use it in GitHub Desktop.
class Usuario(models.Model):
"""
Classe com campo slug.
"""
id = models.AutoField(
primary_key=True
)
slug = models.SlugField(
max_length=150,
unique=True,
default='page-slug'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment