made slug the primary key (as it's unique anyway). This allows other apps to load fixed Attributes from fixtures with less chance of colliding with other fixtures in other apps.

This commit is contained in:
David McCann 2010-09-30 11:02:43 +03:00
parent 39a1c95920
commit 78f6164db0

View file

@ -174,7 +174,7 @@ class Attribute(models.Model):
slug = EavSlugField(_(u"slug"), max_length=50, db_index=True,
help_text=_(u"Short unique attribute label"),
unique=True)
primary_key=True)
description = models.CharField(_(u"description"), max_length=256,
blank=True, null=True,