diff --git a/representatives/models.py b/representatives/models.py index 3c79549e11ab40e7bdce78e74f7ffa9bcf045aa3..37ebfc2e34003c2f5c022658c2a8a48033c89880 100644 --- a/representatives/models.py +++ b/representatives/models.py @@ -31,12 +31,9 @@ class Representative(models.Model): birth_date = models.DateField(blank=True, null=True) cv = models.TextField(blank=True, null=True) - class Meta: - abstract = True - class Contact(models.Model): - representative = models.ForeignKey("Representative") + representative = models.ForeignKey(Representative) class Meta: abstract = True @@ -92,4 +89,4 @@ class Mandate(models.Model): # Sometimes begin_date and end_date are not available active = models.NullBooleanField(default=False) - representative = models.ForeignKey("Representative") + representative = models.ForeignKey(Representative)