<s> from django . db import models <EOL> from django . contrib . sites . models import Site <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Redirect ( models . Model ) : <EOL> site = models . ForeignKey ( Site ) <EOL> old_path = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT:200> , db_index = True , <EOL> help_text = _ ( "<STR_LIT>" ) ) <EOL> new_path = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT:200> , blank = True , <EOL> help_text = _ ( "<STR_LIT>" ) ) <EOL> class Meta : <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) <EOL> db_table = '<STR_LIT>' <EOL> unique_together = ( ( '<STR_LIT>' , '<STR_LIT>' ) , ) <EOL> ordering = ( '<STR_LIT>' , ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . old_path , self . new_path ) </s>
