<s> from django . db import models <EOL> from django . contrib . contenttypes import generic <EOL> from django . contrib . contenttypes . models import ContentType <EOL> from datetime import datetime <EOL> from django_proxy . managers import PublicManager <EOL> class ProxyBase ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> content_type = models . ForeignKey ( ContentType ) <EOL> object_id = models . PositiveIntegerField ( ) <EOL> content_object = generic . GenericForeignKey ( ) <EOL> title = models . CharField ( max_length = <NUM_LIT:255> , blank = True , null = True ) <EOL> description = models . TextField ( blank = True , null = True ) <EOL> tags = models . CharField ( max_length = <NUM_LIT:255> , blank = True , null = True ) <EOL> pub_date = models . DateTimeField ( default = datetime . now ) <EOL> created_on = models . DateTimeField ( default = datetime . now ) <EOL> updated_on = models . DateTimeField ( default = datetime . now ) <EOL> objects = PublicManager ( ) <EOL> def __unicode__ ( self ) : <EOL> return '<STR_LIT:%s>' % self . title <EOL> class Meta : <EOL> abstract = True <EOL> def save ( self , * args , ** kwargs ) : <EOL> self . updated_on = datetime . now ( ) <EOL> super ( ProxyBase , self ) . save ( * args , ** kwargs ) <EOL> class Proxy ( ProxyBase ) : <EOL> '''<STR_LIT>''' <EOL> pass </s>
