You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.py 265B

1234567891011
  1. from django.db import models
  2. from oscar.models.fields import AutoSlugField
  3. class SluggedTestModel(models.Model):
  4. title = models.CharField(max_length=42)
  5. slug = AutoSlugField(populate_from='title')
  6. class ChildSluggedTestModel(SluggedTestModel):
  7. pass