<s> from django . db import models <EOL> from django . contrib . contenttypes . models import ContentType <EOL> from django . conf import settings <EOL> class CSV ( models . Model ) : <EOL> upload_to = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) <EOL> content_type = models . ForeignKey ( ContentType ) <EOL> csv_file = models . FileField ( upload_to = upload_to ) <EOL> created = models . DateTimeField ( auto_now_add = True ) <EOL> @ property <EOL> def filename ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . csv_file . name . replace ( '<STR_LIT>' % self . upload_to , '<STR_LIT>' ) </s>
