mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Add the unique together constraint to TrainingRecord model and actually commit the migration this time.
This commit is contained in:
@@ -35,6 +35,9 @@ class TrainingRecord(models.Model):
|
||||
assessed_trainer = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='trainingrecords_assessed')
|
||||
assessed_notes = models.TextField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('trainee', 'training_item')
|
||||
|
||||
|
||||
@reversion.register
|
||||
class TrainingLevelRecord(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user