From 5f4e9d16e9575293e0770e64461b36197e27941b Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 19 Aug 2017 23:14:01 +0200 Subject: [PATCH] remove save method frm ShopTicket --- src/tickets/models.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tickets/models.py b/src/tickets/models.py index dac2169f..df8a1969 100644 --- a/src/tickets/models.py +++ b/src/tickets/models.py @@ -115,11 +115,6 @@ class ShopTicket(BaseTicket): product=self.product ) - def save(self, **kwargs): - super(ShopTicket, self).save(**kwargs) - self.qrcode_base64 = self.get_qr_code() - super(ShopTicket, self).save(**kwargs) - def get_absolute_url(self): return str(reverse_lazy('shop:ticket_detail', kwargs={'pk': self.pk}))