From 31f08b8d39350fcad2596d8f6b22dc1042d77763 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Wed, 30 Sep 2015 17:05:54 -0400 Subject: [PATCH] Better naming. --- accounts/models.py | 2 +- templates/profile.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/models.py b/accounts/models.py index 6154822..0266349 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -113,7 +113,7 @@ class UserProfile(models.Model): public=True).count() > 0 \ else False - def has_team(self): + def is_a_team(self): return True if get_object_or_None(Team, user=self.user) else False def teams(self): diff --git a/templates/profile.html b/templates/profile.html index ad770db..17c2768 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -1,6 +1,6 @@ {% load snipt_tags %} -{% if user.profile.has_team %} +{% if user.profile.is_a_team %}
{{ user.username }}