<s> from django . db import models <EOL> from brubeck . common . contact . models import Address , PhoneNumber <EOL> from brubeck . core . models import Category <EOL> from brubeck . core import imaging <EOL> class SourceType ( Category ) : <EOL> """<STR_LIT>""" <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> def get_absolute_url ( self ) : <EOL> return '<STR_LIT>' % self . slug <EOL> class Meta : <EOL> ordering = [ '<STR_LIT:name>' ] <EOL> class Source ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> prefix = models . CharField ( max_length = <NUM_LIT:20> , blank = True ) <EOL> first_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> last_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> types = models . ManyToManyField ( SourceType ) <EOL> org = models . CharField ( '<STR_LIT>' , max_length = <NUM_LIT:100> ) <EOL> position = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> email = models . EmailField ( '<STR_LIT>' , blank = True ) <EOL> mugshot = models . ImageField ( upload_to = '<STR_LIT>' , blank = True ) <EOL> other_info = models . TextField ( blank = True , help_text = "<STR_LIT>" ) <EOL> slug = models . SlugField ( help_text = "<STR_LIT>" ) <EOL> addresses = models . ManyToManyField ( Address , blank = True , null = True ) <EOL> phone_numbers = models . ManyToManyField ( PhoneNumber , blank = True , null = True ) <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . first_name , self . last_name ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> class InfoPage ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> description = models . TextField ( ) <EOL> body = models . TextField ( ) <EOL> slug = models . SlugField ( help_text = "<STR_LIT>" ) <EOL> def __unicode__ ( self ) : <EOL> return self . title <EOL> def get_absolute_url ( self ) : <EOL> return '<STR_LIT>' % self . slug <EOL> class Meta : <EOL> ordering = [ '<STR_LIT:title>' ] </s>
