<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Publication ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> def __str__ ( self ) : <EOL> return self . title <EOL> class Meta : <EOL> ordering = ( '<STR_LIT:title>' , ) <EOL> @ python_2_unicode_compatible <EOL> class Tag ( models . Model ) : <EOL> id = models . BigAutoField ( primary_key = True ) <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> @ python_2_unicode_compatible <EOL> class Article ( models . Model ) : <EOL> headline = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> publications = models . ManyToManyField ( Publication , name = '<STR_LIT>' ) <EOL> tags = models . ManyToManyField ( Tag , related_name = '<STR_LIT>' ) <EOL> def __str__ ( self ) : <EOL> return self . headline <EOL> class Meta : <EOL> ordering = ( '<STR_LIT>' , ) <EOL> class AbstractArticle ( models . Model ) : <EOL> class Meta : <EOL> abstract = True <EOL> ordering = ( '<STR_LIT:title>' , ) <EOL> publications = models . ManyToManyField ( Publication , name = '<STR_LIT>' , related_name = '<STR_LIT:+>' ) <EOL> class InheritedArticleA ( AbstractArticle ) : <EOL> pass <EOL> class InheritedArticleB ( AbstractArticle ) : <EOL> pass </s>
