model unicode methods should generally include their id.
This commit is contained in:
parent
cfbe017711
commit
ca6e910c8a
|
@ -82,7 +82,7 @@ class Product(models.Model):
|
||||||
audios = models.ManyToManyField("Audio", blank=True)
|
audios = models.ManyToManyField("Audio", blank=True)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return "%s" % (self.title)
|
return "%d: %s" % (self.id, self.title,)
|
||||||
|
|
||||||
def get_print_multiplier(self, dpi):
|
def get_print_multiplier(self, dpi):
|
||||||
# product = Product.objects.get(pk=self.product.id)
|
# product = Product.objects.get(pk=self.product.id)
|
||||||
|
@ -269,7 +269,7 @@ class Article(models.Model):
|
||||||
return m
|
return m
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return "%d: %s" % (self.id, self.name,)
|
||||||
|
|
||||||
def get_dict(self, *args):
|
def get_dict(self, *args):
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user