add site to trainees

This commit is contained in:
Ross
2023-12-18 09:38:43 +00:00
parent 1809eed93e
commit 7c8f15ca20
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1306,7 +1306,7 @@ class UserProfile(models.Model):
on_delete=models.CASCADE,
)
peninsula_trainee = models.BooleanField(default=False)
#affiliation = models.ForeignKey("Site", on_delete=models.SET_NULL, blank=True, null=True)
site = models.ForeignKey("Site", on_delete=models.SET_NULL, blank=True, null=True, help_text="Primary site / rotation location")
def getusername(self):
return self.user.username