Merge pull request #433 from Gluejar/give_btu

bug fix in give_btu
pull/1/head
Raymond Yee 2014-12-22 11:50:18 -05:00
commit 642653c4f8
1 changed files with 1 additions and 1 deletions

View File

@ -1528,7 +1528,7 @@ class Work(models.Model):
@property
def is_duplicate(self):
# does user have two individual licenses?
pending = self.acqs.filter(license=models.INDIVIDUAL, expires__isnull = True, gifts__used__isnull = True).count()
pending = self.acqs.filter(license=INDIVIDUAL, expires__isnull = True, gifts__used__isnull = True).count()
return self.acqs.filter(license=INDIVIDUAL, expires__isnull = True).count() > pending