From 6514971850a070bd4aeb27aba85e319b852cbd97 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 13 May 2021 00:02:03 +0300 Subject: Django 3 fixes --- servo/models/shipments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/models/shipments.py') diff --git a/servo/models/shipments.py b/servo/models/shipments.py index 9dba9b3..4daa6e2 100644 --- a/servo/models/shipments.py +++ b/servo/models/shipments.py @@ -183,7 +183,7 @@ class Shipment(models.Model): super(Shipment, self).save(*args, **kwargs) - def __unicode__(self): + def __str__(self): return u'Shipment #%s from %s' % (self.pk, self.location.title) class Meta: -- cgit v1.2.3