From 4eac4090a2e999cd089c98a2d429b77f93bda2c9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface <yb@enix.org> Date: Sun, 28 Oct 2012 15:53:06 +0100 Subject: [PATCH] [mod] Add a FK from Mandate to Representative --- representatives/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/representatives/models.py b/representatives/models.py index d07c002..3c79549 100644 --- a/representatives/models.py +++ b/representatives/models.py @@ -91,3 +91,5 @@ class Mandate(models.Model): end_date = models.DateField(blank=True, null=True) # Sometimes begin_date and end_date are not available active = models.NullBooleanField(default=False) + + representative = models.ForeignKey("Representative") -- GitLab