mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
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:
parent
39a1c95920
commit
78f6164db0
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue