def prepare_field_value(self, val): #if isinstance(val, File): # if hasattr(val, 'name'): # val = val.name # else: # val = None if isinstance(val, Link): val = Link.get_absolute_url() return val
def prepare_field_value(self, val): val = super(JSON, self).prepare_field_value(val) if isinstance(val, Link): val = Link.get_absolute_url() return val
def prepare_field_value(self, val): val = super(CollectionJSON, self).prepare_field_value(val) if isinstance(val, Link): val = Link.get_absolute_url() return val