mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: Modèle créé 2 fois par erreur
This commit is contained in:
@ -202,15 +202,6 @@ class Student(models.Model):
|
|||||||
return self.birth_date.strftime('%d-%m-%Y')
|
return self.birth_date.strftime('%d-%m-%Y')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
class BilanCompetence(models.Model):
|
|
||||||
student = models.ForeignKey('Subscriptions.Student', on_delete=models.CASCADE, related_name='bilans')
|
|
||||||
file = models.FileField(upload_to=registration_bilan_form_upload_to, null=True, blank=True)
|
|
||||||
period = models.CharField(max_length=20, help_text="Période ex: T1-2024_2025, S1-2024_2025, A-2024_2025")
|
|
||||||
created_at = models.DateTimeField(auto_now_add=True)
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return f"{self.student} - {self.period}"
|
|
||||||
|
|
||||||
class RegistrationFileGroup(models.Model):
|
class RegistrationFileGroup(models.Model):
|
||||||
name = models.CharField(max_length=255, default="")
|
name = models.CharField(max_length=255, default="")
|
||||||
description = models.TextField(blank=True, null=True)
|
description = models.TextField(blank=True, null=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user