Commit 207a3cf3 authored by Yohan Boniface's avatar Yohan Boniface

Make Representative abstract (user must inherit from it)

parent 4c8d19fb
# -*- coding:utf-8 -*-
from django.db import models
......@@ -29,6 +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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment