I hit the name cap lol

This commit is contained in:
Zergling_man 2022-04-06 00:50:06 +10:00
parent 0f1766ec94
commit 2cd48b67ab
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ class Contact(models.Model):
priority=models.IntegerField() priority=models.IntegerField()
desktop=models.BooleanField(default=True) desktop=models.BooleanField(default=True)
mobile=models.BooleanField(default=True) mobile=models.BooleanField(default=True)
rel=models.BooleanField(default=False)
def save(self,*args,**kwargs): def save(self,*args,**kwargs):
a,_=Update.objects.get_or_create(page='contact') a,_=Update.objects.get_or_create(page='contact')

View File

@ -18,7 +18,8 @@ def index():
def lii(obj): # This will get moved to a template shortly def lii(obj): # This will get moved to a template shortly
name=obj.name name=obj.name
if obj.url: name=f"<a href='{obj.url}'>{name}</a>" relme="rel='me' " if obj.rel else ''
if obj.url: name=f"<a {relme}href='{obj.url}'>{name}</a>"
if obj.comment: name=f"{name} ({obj.comment})" if obj.comment: name=f"{name} ({obj.comment})"
if obj.desktop: name=f"{name} 🖥" if obj.desktop: name=f"{name} 🖥"
if obj.mobile: name=f"{name} 📱" if obj.mobile: name=f"{name} 📱"