# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)


from django.db import models
from konfera.models.abstract import KonferaModel



class EmailTemplate(KonferaModel):
    name = models.CharField(max_length=255)
    text_template = models.TextField()
    html_template = models.TextField()
    counter = models.IntegerField(default=0)

    def __str__(self):
        return self.name


# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)


# Path: konfera/models/email_template.py
from django.db import models
from konfera.models.abstract import KonferaModel




class EmailTemplate(KonferaModel):
    name = models.CharField(max_length=255)
    text_template = models.TextField()
    html_template = models.TextField()
    counter = models.IntegerField(default=0)

    def __str__(self):
        return self.name


    def add_count(self, add=1):