forgot to actually test the code
parent
220d2871c1
commit
5719f7f90c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue