Add commentable property to activities
This commit is contained in:
parent
a22ab92e87
commit
3bbea85b3a
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue