diff options
Diffstat (limited to 'servo/models/product.py')
-rw-r--r-- | servo/models/product.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/servo/models/product.py b/servo/models/product.py index 7ec2b30..83bef0e 100644 --- a/servo/models/product.py +++ b/servo/models/product.py @@ -202,12 +202,14 @@ class Product(AbstractBaseProduct): categories = models.ManyToManyField( "ProductCategory", blank=True, - verbose_name=_("Categories") + verbose_name=_("Categories"), + help_text=_("Product categories"), ) device_models = models.ManyToManyField( "DeviceGroup", blank=True, - verbose_name=_("Device models") + verbose_name=_("Device models"), + help_text=_("Compatible with these devices"), ) tags = GenericRelation(TaggedItem) photo = models.ImageField( @@ -534,7 +536,7 @@ class Product(AbstractBaseProduct): except Exception as e: print(e) - def __unicode__(self): + def __str__(self): return u'%s %s' % (self.code, self.title) class Meta: @@ -585,7 +587,7 @@ class ProductCategory(MPTTModel): self.slug = slugify(self.title[:50]) return super(ProductCategory, self).save(*args, **kwargs) - def __unicode__(self): + def __str__(self): return self.title class Meta: |