From 26c0b0847540df5fabb52c9bdd51fbe13be4a1bf Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 27 Apr 2022 13:12:53 +0200 Subject: [PATCH] Fix natural key --- src/purchase/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/purchase/models.py b/src/purchase/models.py index a274c13..c8f6e46 100644 --- a/src/purchase/models.py +++ b/src/purchase/models.py @@ -50,7 +50,6 @@ class PaymentMethod(Model): def __str__(self): return self.name - @property def natural_key(self): return (self.name,) @@ -99,7 +98,6 @@ class Product(Model): def __str__(self): return self.name - @property def natural_key(self): return (self.name,)