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): def __unicode__(self):
if self.lib_acq: 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: 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 @property
def expired(self): def expired(self):
@ -1083,6 +1083,8 @@ class Work(models.Model):
class Meta: class Meta:
ordering = ['title'] ordering = ['title']
def __unicode__(self):
return self.title
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self._last_campaign = None self._last_campaign = None