education + employees

This commit is contained in:
Mikan
2025-05-18 22:16:31 +03:00
parent 30ef912c0b
commit c0865fdf51
9 changed files with 241 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ class ContactMixin(models.Model):
email = models.EmailField(blank=True, null=True, verbose_name="Почта")
def __str__(self):
return f"{self.last_name} {self.first_name}"
return " ".join(filter(bool, [self.last_name, self.first_name]))
class Meta:
abstract = True