<s> import sys <EOL> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from plata . product . models import ProductBase <EOL> from plata . shop . models import PriceBase <EOL> class Product ( ProductBase ) : <EOL> """<STR_LIT>""" <EOL> is_active = models . BooleanField ( _ ( '<STR_LIT>' ) , default = True ) <EOL> name = models . CharField ( _ ( '<STR_LIT:name>' ) , max_length = <NUM_LIT:100> ) <EOL> slug = models . SlugField ( _ ( '<STR_LIT>' ) , unique = True ) <EOL> ordering = models . PositiveIntegerField ( _ ( '<STR_LIT>' ) , default = <NUM_LIT:0> ) <EOL> description = models . TextField ( _ ( '<STR_LIT:description>' ) , blank = True ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' , '<STR_LIT:name>' ] <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> @ models . permalink <EOL> def get_absolute_url ( self ) : <EOL> return ( '<STR_LIT>' , ( ) , { '<STR_LIT>' : self . pk } ) <EOL> class ProductPrice ( PriceBase ) : <EOL> product = models . ForeignKey ( Product , verbose_name = _ ( '<STR_LIT>' ) , <EOL> related_name = '<STR_LIT>' ) <EOL> class Meta : <EOL> get_latest_by = '<STR_LIT:id>' <EOL> ordering = [ '<STR_LIT>' ] <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) </s>
