Fix natural key

This commit is contained in:
Gabriel Augendre 2022-04-27 13:12:53 +02:00
parent df1d20e079
commit 26c0b08475

View file

@ -50,7 +50,6 @@ class PaymentMethod(Model):
def __str__(self): def __str__(self):
return self.name return self.name
@property
def natural_key(self): def natural_key(self):
return (self.name,) return (self.name,)
@ -99,7 +98,6 @@ class Product(Model):
def __str__(self): def __str__(self):
return self.name return self.name
@property
def natural_key(self): def natural_key(self):
return (self.name,) return (self.name,)