fix at the core
parent
91d783d6e4
commit
ff5263c185
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue