|
@@ -73,7 +73,7 @@ class Invoice(models.Model):
|
|
|
|
|
|
def has_owner(self, username):
|
|
|
"Check if passed username (ex gmajax) is owner of the invoice"
|
|
|
- return (self.username == username)
|
|
|
+ return (self.member.username == username)
|
|
|
|
|
|
def __unicode__(self):
|
|
|
return u'#%s %0.2f€ %s' % (self.number, self.amount(), self.date_due)
|