<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Author ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> class ArticleManager ( models . Manager ) : <EOL> def get_queryset ( self ) : <EOL> return super ( ArticleManager , self ) . get_queryset ( ) . filter ( authors__name__icontains = '<STR_LIT>' ) <EOL> @ python_2_unicode_compatible <EOL> class Article ( models . Model ) : <EOL> authors = models . ManyToManyField ( Author ) <EOL> title = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> objects = models . Manager ( ) <EOL> by_a_sir = ArticleManager ( ) <EOL> def __str__ ( self ) : <EOL> return self . title </s>
