[TASK] Kickstart models for hsh and vivo identities.
This commit is contained in:
parent
54b61f8522
commit
de7fc7173c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue