def isbn_mobi(self):
return self.get_extra_info_json().get('isbn_mobi')
+ def is_accessible_to(self, user):
+ if not self.preview:
+ return True
+ Membership = apps.get_model('club', 'Membership')
+ return Membership.is_active_for(user)
def save(self, force_insert=False, force_update=False, **kwargs):
from sortify import sortify
def update_references(self):
from references.models import Entity, Reference
master = self.get_master()
+ if master is None:
+ master = []
found = set()
for i, sec in enumerate(master):
for ref in sec.findall('.//ref'):