<s> from django . contrib . auth . models import User <EOL> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> class Feed ( models . Model ) : <EOL> title = models . CharField ( _ ( "<STR_LIT>" ) , max_length = <NUM_LIT> ) <EOL> feed_url = models . URLField ( _ ( "<STR_LIT>" ) , unique = True , verify_exists = False ) <EOL> site_url = models . URLField ( _ ( "<STR_LIT>" ) , verify_exists = False ) <EOL> is_active = models . BooleanField ( _ ( "<STR_LIT>" ) , default = True ) <EOL> owner = models . OneToOneField ( User , blank = True , null = True ) <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> class Meta : <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> verbose_name_plural = _ ( "<STR_LIT>" ) <EOL> class FeedItem ( models . Model ) : <EOL> feed = models . ForeignKey ( <EOL> Feed , verbose_name = _ ( "<STR_LIT>" ) , related_name = '<STR_LIT>' ) <EOL> title = models . CharField ( _ ( "<STR_LIT>" ) , max_length = <NUM_LIT> ) <EOL> link = models . URLField ( _ ( "<STR_LIT>" ) , blank = True ) <EOL> content = models . TextField ( _ ( "<STR_LIT>" ) ) <EOL> published_at = models . DateTimeField ( _ ( "<STR_LIT>" ) ) <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> class Meta : <EOL> ordering = ( '<STR_LIT>' , ) <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> verbose_name_plural = _ ( "<STR_LIT>" ) </s>
