mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Fix (probably) reversion for trainingitemqualification
This commit is contained in:
@@ -6,7 +6,7 @@ from django.utils.safestring import mark_safe
|
||||
from versioning.versioning import RevisionMixin
|
||||
|
||||
|
||||
@reversion.register(for_concrete_model=False, fields=[], follow=["qualifications_obtained", "level_qualifications"])
|
||||
@reversion.register(for_concrete_model=False, fields=[])
|
||||
class Trainee(Profile, RevisionMixin):
|
||||
class Meta:
|
||||
proxy = True
|
||||
@@ -39,6 +39,10 @@ class Trainee(Profile, RevisionMixin):
|
||||
def display_id(self):
|
||||
return str(self)
|
||||
|
||||
@property
|
||||
def full_name(self):
|
||||
return self.first_name + " " + self.last_name
|
||||
|
||||
|
||||
class TrainingCategory(models.Model):
|
||||
reference_number = models.IntegerField(unique=True)
|
||||
|
||||
Reference in New Issue
Block a user