[TASK] Kickstart models for hsh and vivo identities.

This commit is contained in:
Jan Philipp Timme 2014-10-10 15:16:14 +02:00
parent 54b61f8522
commit de7fc7173c
1 changed files with 15 additions and 1 deletions

View File

@ -39,4 +39,18 @@ class CitaviProjectIdentity(models.Model):
citavi_repr = person_mapper.get_representation_for_citavi_identity(self)
if self.preferred == True:
citavi_repr = citavi_repr + u" <preferred>"
return citavi_repr
return citavi_repr
# TODO: Figure out how to realize this step by step. PROPERLY!
class HSHIdentity(models.Model):
""" Model representing existing HSH identities. """
global_identity = models.ForeignKey(PersonGlobalIdentity, blank=True, null=True, db_index=True)
preferred = models.BooleanField()
class VIVOIdentity(models.Model):
""" Model representing existing VIVO identities. """
global_identity = models.ForeignKey(PersonGlobalIdentity, blank=True, null=True, db_index=True)
preferred = models.BooleanField()