[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

@ -40,3 +40,17 @@ class CitaviProjectIdentity(models.Model):
if self.preferred == True:
citavi_repr = citavi_repr + u" <preferred>"
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()