<s> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django_countries . fields import CountryField <EOL> from journalmanager . models import Issue , Language <EOL> class EditorialBoard ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> issue = models . OneToOneField ( Issue , null = False ) <EOL> def __unicode__ ( self ) : <EOL> return "<STR_LIT>" % self . issue <EOL> class EditorialMember ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> role = models . ForeignKey ( '<STR_LIT>' ) <EOL> board = models . ForeignKey ( EditorialBoard ) <EOL> first_name = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> ) <EOL> last_name = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> ) <EOL> email = models . EmailField ( _ ( '<STR_LIT>' ) , null = True , blank = True ) <EOL> institution = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , default = '<STR_LIT>' ) <EOL> link_cv = models . URLField ( _ ( '<STR_LIT>' ) , null = True , blank = True ) <EOL> city = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , null = True , blank = True ) <EOL> state = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , null = True , blank = True ) <EOL> country = CountryField ( _ ( '<STR_LIT>' ) , blank_label = "<STR_LIT>" ) <EOL> research_id = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , null = True , blank = True ) <EOL> orcid = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , null = True , blank = True ) <EOL> order = models . IntegerField ( _ ( '<STR_LIT>' ) , default = <NUM_LIT:1> ) <EOL> def __unicode__ ( self ) : <EOL> return self . get_full_name ( ) <EOL> def get_full_name ( self ) : <EOL> return '<STR_LIT:U+0020>' . join ( [ self . first_name , self . last_name ] ) <EOL> class Meta : <EOL> ordering = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> class RoleType ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , unique = True ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class Meta : <EOL> ordering = ( '<STR_LIT:name>' , ) <EOL> class RoleTypeTranslation ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> role = models . ForeignKey ( RoleType , related_name = '<STR_LIT>' ) <EOL> name = models . CharField ( _ ( '<STR_LIT>' ) , max_length = <NUM_LIT> , default = '<STR_LIT>' ) <EOL> language = models . ForeignKey ( Language ) <EOL> def __unicode__ ( self ) : <EOL> return u"<STR_LIT>" % ( self . name , self . language . iso_code ) <EOL> class Meta : <EOL> unique_together = ( "<STR_LIT>" , "<STR_LIT>" ) </s>
