예제 #1
0
파일: models.py 프로젝트: IDCH/lha
 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)
예제 #2
0
파일: models.py 프로젝트: IDCH/lha
 def get_by_id(short_id):
     authid = short_url.decode_url(short_id)
     return Person.objects.get(id=authid)
예제 #3
0
파일: models.py 프로젝트: IDCH/lha
 def get_by_id(short_id):
     docid = short_url.decode_url(short_id)
     return Document.objects.get(id=docid)