fix at the core

pull/1/head
eric 2015-12-18 14:28:49 -05:00
parent 91d783d6e4
commit ff5263c185
1 changed files with 4 additions and 2 deletions

View File

@ -280,9 +280,9 @@ class Acq(models.Model):
def __unicode__(self):
if self.lib_acq:
return "%s, %s: %s for %s" % (self.work, self.get_license_display(), self.lib_acq.user, self.user)
return "%s, %s: %s for %s" % (self.work.title, self.get_license_display(), self.lib_acq.user, self.user)
else:
return "%s, %s for %s" % (self.work, self.get_license_display(), self.user,)
return "%s, %s for %s" % (self.work.title, self.get_license_display(), self.user,)
@property
def expired(self):
@ -1083,6 +1083,8 @@ class Work(models.Model):
class Meta:
ordering = ['title']
def __unicode__(self):
return self.title
def __init__(self, *args, **kwargs):
self._last_campaign = None