enhance AutoSlugField to track parent?

14 views
Skip to first unread message

Aljosa Mohorovic

unread,
Oct 14, 2010, 5:54:33 PM10/14/10
to django-extensions
i often have situations where slug should be combination of current
model and model parent, models.py:
class Category(models.Model):
title = models.CharField(max_length=255)
category = models.ForeignKey('Category', blank=True, null=True)

last year i've changed AutoSlugField and was wondering if, with
obvious optimizations/code cleanup, this or similar code could ever be
integrated with official AutoSlugField?

http://github.com/aljosa/django-extensions/commit/25d70a3692691815643c847ae35f0f56b13f653e


Aljosa Mohorovic
Reply all
Reply to author
Forward
0 new messages