Skip to content

Commit

Permalink
Set oui field as unique
Browse files Browse the repository at this point in the history
Co-authored-by: Johanna England <[email protected]>
  • Loading branch information
stveit and johannaengland authored Aug 14, 2024
1 parent 216124d commit 82df823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/models/oui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class OUI(models.Model):
"""Defines an OUI and the name of the vendor the OUI belongs to"""

vendor = VarcharField()
oui = models.CharField(max_length=17)
oui = models.CharField(max_length=17, unique=True)

def __str__(self):
return self.oui
Expand Down

0 comments on commit 82df823

Please sign in to comment.