forgot to actually test the code

pull/1/head
eric 2014-12-20 13:14:05 -05:00
parent 220d2871c1
commit 5719f7f90c
1 changed files with 2 additions and 2 deletions

View File

@ -1526,9 +1526,9 @@ class Work(models.Model):
return None
@property
def is_duplicate():
def is_duplicate(self):
# does user have two individual licenses?
return acqs.filter(license=INDIVIDUAL, expires__isnull = True).count() > 1
return self.acqs.filter(license=INDIVIDUAL, expires__isnull = True).count() > 1
def get_user_license(self, user):