feat: make TransactionRuleAction field and value unique together

This commit is contained in:
Herculino Trotta
2024-10-23 22:49:10 -03:00
parent 82a08aac8a
commit 344b404184
3 changed files with 28 additions and 5 deletions
+3
View File
@@ -42,3 +42,6 @@ class TransactionRuleAction(models.Model):
def __str__(self):
return f"{self.rule} - {self.field} - {self.value}"
class Meta:
unique_together = (("rule", "field"),)