def get_by_id(short_id): """ Returns the FileRecord with the specified unique id. This is assumed to be the short form URL returned by 'uid()' rather than the raw numeric URL. """ record_id = short_url.decode_url(short_id) return FileRecord.objects.get(id=record_id)
def get_by_id(short_id): authid = short_url.decode_url(short_id) return Person.objects.get(id=authid)
def get_by_id(short_id): docid = short_url.decode_url(short_id) return Document.objects.get(id=docid)