Modèles de commentaires et de notifications #18

Merged
lstephan merged 21 commits from Aufinal/communication_models into master 2017-07-21 16:58:51 +02:00
Showing only changes of commit 3bbea85b3a - Show all commits

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,