Skip to content

Commit

Permalink
weird things :(
Browse files Browse the repository at this point in the history
  • Loading branch information
cadu-leite committed Nov 26, 2012
1 parent 1b92f42 commit 94cb8e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_people/people/models.py
Expand Up @@ -44,7 +44,7 @@ class UserProfile(models.Model):

bio = models.TextField()

#occupation = models.ManyToManyField(Occupation)
#occupation = models.ManyToManyField(Occupation)
#organization = models.CharField(max_length=60 , blank=True, null=True )
#organization_site = models.URLField()
#blog = models.URLField(verify_exists=True, blank=True, null=True )
Expand Down Expand Up @@ -81,7 +81,7 @@ class PythonGroup(models.Model):
objects = models.GeoManager()

def __unicode__(self):
return self.user.name
return self.name

def is_group_owner(self, user):
'''return true if user is the owner or if it has no owner.'''
Expand Down Expand Up @@ -145,4 +145,4 @@ def is_survey_owner(self, user):
'''return true if user is the owner or if it has no owner.
to implement per user object check
'''
return (self.user == user) or not self.user
return (self.user == user) or not self.user

0 comments on commit 94cb8e8

Please sign in to comment.