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} 📱"