<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> class Category ( models . Model ) : <EOL> name = models . CharField ( maxlength = <NUM_LIT:20> ) <EOL> url = models . CharField ( '<STR_LIT>' , maxlength = <NUM_LIT> ) <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> class Writer ( models . Model ) : <EOL> name = models . CharField ( maxlength = <NUM_LIT:50> , help_text = '<STR_LIT>' ) <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> class Article ( models . Model ) : <EOL> headline = models . CharField ( maxlength = <NUM_LIT:50> ) <EOL> pub_date = models . DateField ( ) <EOL> created = models . DateField ( editable = False ) <EOL> writer = models . ForeignKey ( Writer ) <EOL> article = models . TextField ( ) <EOL> categories = models . ManyToManyField ( Category , blank = True ) <EOL> def save ( self ) : <EOL> import datetime <EOL> if not self . id : <EOL> self . created = datetime . date . today ( ) <EOL> return super ( Article , self ) . save ( ) <EOL> def __str__ ( self ) : <EOL> return self . headline <EOL> class PhoneNumber ( models . Model ) : <EOL> phone = models . PhoneNumberField ( ) <EOL> description = models . CharField ( maxlength = <NUM_LIT:20> ) <EOL> def __str__ ( self ) : <EOL> return self . phone <EOL> __test__ = { '<STR_LIT>' : """<STR_LIT>""" } </s>
