Add link between CorpContact and Section, export according to that link

This commit is contained in:
Claude Paroz 2016-01-15 21:01:07 +01:00
parent 2c5bb00c8d
commit d45742d88f
6 changed files with 65 additions and 22 deletions

View file

@ -151,6 +151,7 @@ class CorpContact(models.Model):
role = models.CharField(max_length=40, verbose_name='Fonction', blank=True)
tel = models.CharField(max_length=20, blank=True, verbose_name='Téléphone')
email = models.CharField(max_length=100, blank=True, verbose_name='Courriel')
sections = models.ManyToManyField(Section, blank=True)
class Meta:
verbose_name = "Contact"