Better naming.

master
Nick Sergeant 2015-09-30 17:05:54 -04:00
parent fbd781d0b9
commit 31f08b8d39
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -1,6 +1,6 @@
{% load snipt_tags %}
{% if user.profile.has_team %}
{% if user.profile.is_a_team %}
<div class="profile group">
<a href="/{{ user.username }}/">
<img src="https://secure.gravatar.com/avatar/{{ user.email|md5 }}?s=300" alt="{{ user.username }}" title="{{ user.username }}" />