<s> from django . db import models <EOL> from django . contrib . auth . models import User <EOL> import re <EOL> def help_text ( s ) : <EOL> """<STR_LIT>""" <EOL> return re . sub ( '<STR_LIT>' , '<STR_LIT:U+0020>' , s ) . strip ( ) <EOL> class CuratedMixin ( models . Model ) : <EOL> added_by = models . ForeignKey ( User ) <EOL> added_on = models . DateTimeField ( auto_now_add = True ) <EOL> updated_on = models . DateTimeField ( auto_now = True ) <EOL> class Meta : <EOL> abstract = True <EOL> class Institution ( CuratedMixin ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> notes = models . TextField ( null = True , blank = True ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class Resolver ( CuratedMixin ) : <EOL> """<STR_LIT>""" <EOL> belongs_to = models . OneToOneField ( '<STR_LIT>' , related_name = '<STR_LIT>' ) <EOL> endpoint = models . URLField ( max_length = <NUM_LIT:1000> , help_text = help_text ( """<STR_LIT>""" ) ) <EOL> notes = models . TextField ( null = True , blank = True ) <EOL> link_icon = models . URLField ( max_length = <NUM_LIT:1000> , blank = True , null = True , <EOL> help_text = help_text ( """<STR_LIT>""" ) ) <EOL> link_text = models . CharField ( max_length = <NUM_LIT:1000> , blank = True , null = True , <EOL> help_text = help_text ( """<STR_LIT>""" ) ) <EOL> def __unicode__ ( self ) : <EOL> return self . belongs_to . name </s>
