@@ -96,45 +96,50 @@ class Meta:
9696 class Admin :
9797 pass
9898
99- class SDOs (models .Model ):
100- sdo_id = models .AutoField (primary_key = True )
101- sdo_name = models .CharField (blank = True , maxlength = 255 )
102- def __str__ (self ):
103- return self .sdo_name
104- def liaisonmanager (self ):
105- try :
106- return self .liaisonmanagers_set .all ()[0 ]
107- except :
108- return None
109- class Meta :
110- db_table = 'sdos'
111- class Admin :
112- pass
99+ # This table is not used by any code right now, and according to Glen,
100+ # probably not currently (Aug 2009) maintained by the secretariat.
101+ #class SDOs(models.Model):
102+ # sdo_id = models.AutoField(primary_key=True)
103+ # sdo_name = models.CharField(blank=True, maxlength=255)
104+ # def __str__(self):
105+ # return self.sdo_name
106+ # def liaisonmanager(self):
107+ # try:
108+ # return self.liaisonmanagers_set.all()[0]
109+ # except:
110+ # return None
111+ # class Meta:
112+ # db_table = 'sdos'
113+ # class Admin:
114+ # pass
113115
114- class LiaisonManagers (models .Model ):
115- person = models .ForeignKey (PersonOrOrgInfo , db_column = 'person_or_org_tag' , raw_id_admin = True )
116- email_priority = models .IntegerField (null = True , blank = True , core = True )
117- sdo = models .ForeignKey (SDOs , edit_inline = models .TABULAR , num_in_admin = 1 )
118- def email (self ):
119- try :
120- return self .person .emailaddress_set .get (priority = self .email_priority )
121- except ObjectDoesNotExist :
122- return None
123- class Meta :
124- db_table = 'liaison_managers'
116+ # This table is not used by any code right now, and according to Glen,
117+ # probably not currently (Aug 2009) maintained by the secretariat.
118+ #class LiaisonManagers(models.Model):
119+ # person = models.ForeignKey(PersonOrOrgInfo, db_column='person_or_org_tag', raw_id_admin=True)
120+ # email_priority = models.IntegerField(null=True, blank=True, core=True)
121+ # sdo = models.ForeignKey(SDOs, edit_inline=models.TABULAR, num_in_admin=1)
122+ # def email(self):
123+ # try:
124+ # return self.person.emailaddress_set.get(priority=self.email_priority)
125+ # except ObjectDoesNotExist:
126+ # return None
127+ # class Meta:
128+ # db_table = 'liaison_managers'
125129
126- class LiaisonsInterim (models .Model ):
127- title = models .CharField (blank = True , maxlength = 255 )
128- submitter_name = models .CharField (blank = True , maxlength = 255 )
129- submitter_email = models .CharField (blank = True , maxlength = 255 )
130- submitted_date = models .DateField (null = True , blank = True )
131- from_id = models .IntegerField (null = True , blank = True )
132- def __str__ (self ):
133- return self .title
134- class Meta :
135- db_table = 'liaisons_interim'
136- class Admin :
137- pass
130+ # This table is not used by any code right now.
131+ #class LiaisonsInterim(models.Model):
132+ # title = models.CharField(blank=True, maxlength=255)
133+ # submitter_name = models.CharField(blank=True, maxlength=255)
134+ # submitter_email = models.CharField(blank=True, maxlength=255)
135+ # submitted_date = models.DateField(null=True, blank=True)
136+ # from_id = models.IntegerField(null=True, blank=True)
137+ # def __str__(self):
138+ # return self.title
139+ # class Meta:
140+ # db_table = 'liaisons_interim'
141+ # class Admin:
142+ # pass
138143
139144class Uploads (models .Model ):
140145 file_id = models .AutoField (primary_key = True )
0 commit comments