note con l'asterisco sono più riconoscibili

my-submodulepoetico
Guido Longoni 2023-06-20 22:59:46 +02:00
parent 5cf41f5d53
commit 908fd8bba7
1 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ class Telefono(VoceContattoRubrica):
else: else:
tel = str(self.numero) tel = str(self.numero)
if self.note: if self.note:
tel += ' (!)' tel += ' (*)'
return tel return tel
numero = models.CharField(null=False,blank=False,max_length=20) numero = models.CharField(null=False,blank=False,max_length=20)
@ -91,7 +91,7 @@ class Email(VoceContattoRubrica):
def __str__(self): def __str__(self):
eml = self.indirizzo_email eml = self.indirizzo_email
if self.note: if self.note:
eml += ' (!)' eml += ' (*)'
return eml return eml
indirizzo_email = models.EmailField(null=False,blank=False,max_length=254) indirizzo_email = models.EmailField(null=False,blank=False,max_length=254)
@ -106,7 +106,7 @@ class Pec(Email):
def __str__(self): def __str__(self):
eml = self.indirizzo_email eml = self.indirizzo_email
if self.note: if self.note:
eml += ' (!)' eml += ' (*)'
return eml return eml
@ -119,7 +119,7 @@ class Fax(VoceContattoRubrica):
def __str__(self): def __str__(self):
out = self.numero out = self.numero
if self.note: if self.note:
out += ' (!)' out += ' (*)'
return out.strip() return out.strip()
numero = models.CharField(null=False,blank=False, max_length=20) numero = models.CharField(null=False,blank=False, max_length=20)