I hit the name cap lol
This commit is contained in:
parent
0f1766ec94
commit
2cd48b67ab
|
@ -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')
|
||||
|
|
|
@ -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"<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.desktop: name=f"{name} 🖥"
|
||||
if obj.mobile: name=f"{name} 📱"
|
||||
|
|
Loading…
Reference in New Issue
Block a user