mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-13 08:12:51 +02:00
feat: make TransactionRuleAction field and value unique together
This commit is contained in:
@@ -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"),)
|
||||
|
||||
Reference in New Issue
Block a user