mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-28 04:10:23 +00:00
Added db_index and verbose name
This commit is contained in:
parent
f21d08b3bc
commit
4cb5981079
1 changed files with 2 additions and 1 deletions
|
|
@ -222,7 +222,8 @@ class EavValue(models.Model):
|
|||
created = models.DateTimeField(_(u"created"), default=datetime.now)
|
||||
modified = models.DateTimeField(_(u"modified"), auto_now=True)
|
||||
|
||||
attribute = models.ForeignKey(EavAttribute)
|
||||
attribute = models.ForeignKey(EavAttribute, db_index=True,
|
||||
verbose_name=_(u"attribute"))
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.full_clean()
|
||||
|
|
|
|||
Loading…
Reference in a new issue