Better naming.
parent
fbd781d0b9
commit
31f08b8d39
|
@ -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):
|
||||
|
|
|
@ -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 }}" />
|
||||
|
|
Loading…
Reference in New Issue