<s> from django . db import models <EOL> from django . conf import settings <EOL> class Upload ( models . Model ) : <EOL> created = models . DateTimeField ( auto_now_add = True ) <EOL> name = models . CharField ( max_length = <NUM_LIT:200> , null = True , blank = True ) <EOL> path = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> size = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' ] <EOL> def __unicode__ ( self ) : <EOL> return u"<STR_LIT>" % { '<STR_LIT:id>' : self . id } <EOL> def full_url ( self ) : <EOL> return settings . AWS_BASE_URL + self . path <EOL> @ models . permalink <EOL> def get_absolute_url ( self ) : <EOL> return ( '<STR_LIT>' , ( ) , { '<STR_LIT:id>' : self . id } ) </s>
