From 715e953182a2b1cee3674c0fe0da3d9fefda7400 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 18 Sep 2020 20:30:25 +0200 Subject: [PATCH] Changed __str__ repr of Vouchers. --- django_lostplaces/lostplaces/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models.py b/django_lostplaces/lostplaces/models.py index 2fe6127..f35eefa 100644 --- a/django_lostplaces/lostplaces/models.py +++ b/django_lostplaces/lostplaces/models.py @@ -107,7 +107,7 @@ class Voucher(models.Model): expires_when = models.DateTimeField() def __str__(self): - return "Voucher " + str(self.code) + return "Voucher " + str(self.pk) class Place(Submittable, Taggable, Mapable):