<s> from django . db import models <EOL> from djangosphinx import SphinxSearch <EOL> import datetime <EOL> class Group ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:32> ) <EOL> class Document ( models . Model ) : <EOL> group = models . ForeignKey ( Group ) <EOL> date_added = models . DateTimeField ( default = datetime . datetime . now ) <EOL> title = models . CharField ( max_length = <NUM_LIT:32> ) <EOL> content = models . TextField ( ) <EOL> search = SphinxSearch ( index = "<STR_LIT:test>" ) <EOL> class Meta : <EOL> db_table = '<STR_LIT>' </s>
