<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from . . mtmodel import MTModel <EOL> from . . core . models import Product <EOL> class Tag ( MTModel ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( db_index = True , max_length = <NUM_LIT:100> ) <EOL> description = models . TextField ( blank = True ) <EOL> product = models . ForeignKey ( Product , blank = True , null = True ) <EOL> def __unicode__ ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . name <EOL> def clone ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> overrides = kwargs . setdefault ( "<STR_LIT>" , { } ) <EOL> overrides . setdefault ( "<STR_LIT:name>" , "<STR_LIT>" . format ( self . name ) ) <EOL> return super ( Tag , self ) . clone ( * args , ** kwargs ) <EOL> class Meta : <EOL> permissions = [ ( "<STR_LIT>" , "<STR_LIT>" ) ] </s>
