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