Add commentable property to activities

This commit is contained in:
Ludovic Stephan 2017-07-15 18:14:15 +02:00
parent a22ab92e87
commit 3bbea85b3a

View file

@ -3,9 +3,10 @@ from django.utils.translation import ugettext_lazy as _
from django.core.validators import RegexValidator
from django.core.exceptions import FieldError
from django.db import models
from communication.models import Commentable, Notifying
class Event(models.Model):
class Event(Commentable):
title = models.CharField(
_("nom de l'évènement"),
max_length=200,
@ -87,7 +88,7 @@ class ActivityTag(models.Model):
return self.name
class ActivityTemplate(models.Model):
class ActivityTemplate(Commentable):
title = models.CharField(
_("nom de l'activité"),
max_length=200,