From 2cd48b67ab891e9f0dc58940437e07cb2c7e3fb9 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Wed, 6 Apr 2022 00:50:06 +1000 Subject: [PATCH] I hit the name cap lol --- main/models.py | 1 + main/views.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main/models.py b/main/models.py index 55b274f..d84d54e 100644 --- a/main/models.py +++ b/main/models.py @@ -24,6 +24,7 @@ class Contact(models.Model): priority=models.IntegerField() desktop=models.BooleanField(default=True) mobile=models.BooleanField(default=True) + rel=models.BooleanField(default=False) def save(self,*args,**kwargs): a,_=Update.objects.get_or_create(page='contact') diff --git a/main/views.py b/main/views.py index 3f1a646..1b91a8e 100644 --- a/main/views.py +++ b/main/views.py @@ -18,7 +18,8 @@ def index(): def lii(obj): # This will get moved to a template shortly name=obj.name - if obj.url: name=f"{name}" + relme="rel='me' " if obj.rel else '' + if obj.url: name=f"{name}" if obj.comment: name=f"{name} ({obj.comment})" if obj.desktop: name=f"{name} 🖥" if obj.mobile: name=f"{name} 📱"