From de7fc7173c8ff783efcfce352ae7ebbb2321dd17 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Fri, 10 Oct 2014 15:16:14 +0200 Subject: [PATCH] [TASK] Kickstart models for hsh and vivo identities. --- frontend/models.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/models.py b/frontend/models.py index 1d0a39c..5ecbb25 100644 --- a/frontend/models.py +++ b/frontend/models.py @@ -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" " - return citavi_repr \ No newline at end of file + 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() +