diff --git a/event/models.py b/event/models.py index 5b8910f..186a3db 100644 --- a/event/models.py +++ b/event/models.py @@ -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,