mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-20 06:52:15 +00:00
Start work on sample data command
This commit is contained in:
@@ -15,10 +15,13 @@ class TrainingCategory(models.Model):
|
||||
|
||||
|
||||
class TrainingItem(models.Model):
|
||||
category = models.ForeignKey('TrainingCategory', on_delete=models.RESTRICT)
|
||||
category = models.ForeignKey('TrainingCategory', related_name='category', on_delete=models.RESTRICT)
|
||||
number = models.CharField(max_length=3)
|
||||
name = models.CharField(max_length=50)
|
||||
|
||||
def __str__(self):
|
||||
return "{}.{} {}".format(self.category.number, self.number, self.name)
|
||||
|
||||
|
||||
# TODO Validation that dates cannot be in the future
|
||||
class TrainingItemQualification(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user