Skip to content

Commit

Permalink
Added unique_together constraint in IETFReport
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinaascari committed Sep 2, 2024
1 parent 7c81328 commit 48bfb83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api_app/data_model_manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class IETFReport(models.Model):
time_first = models.DateTimeField()
time_last = models.DateTimeField()

class Meta:
unique_together = ("rrname", "rrtype", "rdata")


class Signature(models.Model):
name = models.CharField(max_length=100)
Expand Down

0 comments on commit 48bfb83

Please sign in to comment.