mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Force traininglevelqualifications to be unique
This commit is contained in:
@@ -152,3 +152,6 @@ class TrainingLevelQualification(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
return "{} qualified as a {}".format(self.trainee, self.level)
|
||||
|
||||
class Meta:
|
||||
unique_together = ["trainee", "level"]
|
||||
|
||||
Reference in New Issue
Block a user