<s> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from linguo . managers import MultilingualManager <EOL> from linguo . models import MultilingualModel <EOL> class FooCategory ( MultilingualModel ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT:name>' ) ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> ordering = ( '<STR_LIT:name>' , '<STR_LIT:id>' , ) <EOL> translate = ( '<STR_LIT:name>' , ) <EOL> class Foo ( MultilingualModel ) : <EOL> price = models . PositiveIntegerField ( verbose_name = _ ( '<STR_LIT>' ) ) <EOL> name = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT:name>' ) ) <EOL> categories = models . ManyToManyField ( FooCategory , blank = True ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT:name>' , ) <EOL> unique_together = ( '<STR_LIT:name>' , '<STR_LIT>' , ) <EOL> class FooRel ( models . Model ) : <EOL> myfoo = models . ForeignKey ( Foo ) <EOL> desc = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT>' ) ) <EOL> objects = MultilingualManager ( ) <EOL> class Moo ( Foo ) : <EOL> q1 = models . PositiveIntegerField ( ) <EOL> class Meta : <EOL> unique_together = ( '<STR_LIT>' , ) <EOL> class Bar ( Foo ) : <EOL> quantity = models . PositiveIntegerField ( verbose_name = _ ( '<STR_LIT>' ) ) <EOL> description = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT:description>' , ) <EOL> class BarRel ( models . Model ) : <EOL> mybar = models . ForeignKey ( Bar ) <EOL> desc = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT>' ) ) <EOL> objects = MultilingualManager ( ) <EOL> class AbstractMoe ( MultilingualModel ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT:name>' ) ) <EOL> price = models . PositiveIntegerField ( verbose_name = _ ( '<STR_LIT>' ) ) <EOL> class Meta : <EOL> abstract = True <EOL> translate = ( '<STR_LIT:name>' , ) <EOL> class Moe ( AbstractMoe ) : <EOL> description = models . CharField ( max_length = <NUM_LIT:255> , <EOL> verbose_name = _ ( '<STR_LIT:description>' ) , <EOL> ) <EOL> quantity = models . PositiveIntegerField ( verbose_name = _ ( '<STR_LIT>' ) ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT:description>' , ) <EOL> class Gem ( MultilingualModel ) : <EOL> gemtype = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT>' ) , <EOL> choices = ( ( '<STR_LIT:a>' , '<STR_LIT>' ) , ( '<STR_LIT:b>' , '<STR_LIT>' ) , ) <EOL> ) <EOL> somefoo = models . ForeignKey ( Foo , null = True , blank = True ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT>' , ) <EOL> class Hop ( MultilingualModel ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> , verbose_name = _ ( '<STR_LIT:name>' ) ) <EOL> description = models . CharField ( max_length = <NUM_LIT:255> , <EOL> verbose_name = _ ( '<STR_LIT:description>' ) , <EOL> ) <EOL> price = models . PositiveIntegerField ( verbose_name = _ ( '<STR_LIT>' ) ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT:name>' , '<STR_LIT:description>' , ) <EOL> class Ord ( Foo ) : <EOL> last_name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> objects = MultilingualManager ( ) <EOL> class Meta : <EOL> ordering = ( '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT:id>' , ) <EOL> translate = ( '<STR_LIT>' , ) <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . name , self . last_name ) <EOL> class Doc ( MultilingualModel ) : <EOL> pdf = models . FileField ( upload_to = '<STR_LIT>' ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT>' , ) <EOL> class Lan ( MultilingualModel ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> language = models . CharField ( max_length = <NUM_LIT:255> , default = None ) <EOL> class Meta : <EOL> translate = ( '<STR_LIT:name>' , ) <EOL> """<STR_LIT>""" </s>
