<s> from django . db import models <EOL> from datetime import datetime <EOL> from tagging . fields import TagField <EOL> from tagging . models import Tag <EOL> class Post ( models . Model ) : <EOL> title = models . CharField ( max_length = '<STR_LIT>' ) <EOL> body = models . TextField ( ) <EOL> approved = models . BooleanField ( default = False , blank = True ) <EOL> date = models . DateTimeField ( '<STR_LIT:date>' , blank = True , default = datetime . now ( ) ) <EOL> tags = TagField ( ) <EOL> def get_tags ( self ) : <EOL> return Tag . objects . get_for_object ( self ) <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> def get_absolute_url ( self ) : <EOL> return "<STR_LIT>" + str ( self . pk ) </s>
