# Path: wbc/core/models.py
# class Model(models.Model):
#     created = models.DateTimeField(editable=False)
#     updated = models.DateTimeField(editable=False)
# 
#     def save(self, *args, **kwargs):
#         if not self.id:
#             self.created = now()
# 
#         self.updated = now()
#         super(Model, self).save(*args, **kwargs)
# 
#     class Meta:
#         abstract = True
# 
# Path: wbc/process/models.py
# class Place(Model):
#     class Meta:
# class Publication(Model):
#     class Meta:
# class ProcessStep(Model):
#     class Meta:
# class ProcessType(Model):
#     class Meta:
#     def get_absolute_url(self):
#     def get_update_url(self):
#     def get_delete_url(self):
#     def __str__(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def get_update_url(self):
#     def get_delete_url(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __unicode__(self):


import random
import string
from django.db import models
from wbc.core.models import Model
from wbc.process.models import Entity
    email = models.EmailField(unique=True)
    entities = models.CharField(max_length=256, blank=True, null=True)
    code = models.SlugField(max_length=32)
    action = models.CharField(max_length=16)

    def save(self, *args, **kwargs):
        c = string.ascii_lowercase + string.ascii_uppercase + string.digits
        self.code = ''.join(random.sample(c*32, 32))
        super(Validation, self).save(*args, **kwargs)

    def __unicode__(self):
        return self.email

    class Meta:
        verbose_name = "Validierung"
        verbose_name_plural = "Validierung"


class Subscriber(Model):
    email = models.EmailField(unique=True)
    entities = models.ManyToManyField(Entity, related_name='subscribers')

    def __unicode__(self):
        return self.email

    class Meta:
        verbose_name = "Abonnent"
        verbose_name_plural = "Abonnenten"



# Path: wbc/core/models.py
# class Model(models.Model):
#     created = models.DateTimeField(editable=False)
#     updated = models.DateTimeField(editable=False)
# 
#     def save(self, *args, **kwargs):
#         if not self.id:
#             self.created = now()
# 
#         self.updated = now()
#         super(Model, self).save(*args, **kwargs)
# 
#     class Meta:
#         abstract = True
# 
# Path: wbc/process/models.py
# class Place(Model):
#     class Meta:
# class Publication(Model):
#     class Meta:
# class ProcessStep(Model):
#     class Meta:
# class ProcessType(Model):
#     class Meta:
#     def get_absolute_url(self):
#     def get_update_url(self):
#     def get_delete_url(self):
#     def __str__(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def get_update_url(self):
#     def get_delete_url(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __unicode__(self):


# Path: wbc/news/models.py
import random
import string
from django.db import models
from wbc.core.models import Model
from wbc.process.models import Entity

    email = models.EmailField(unique=True)
    entities = models.CharField(max_length=256, blank=True, null=True)
    code = models.SlugField(max_length=32)
    action = models.CharField(max_length=16)

    def save(self, *args, **kwargs):
        c = string.ascii_lowercase + string.ascii_uppercase + string.digits
        self.code = ''.join(random.sample(c*32, 32))
        super(Validation, self).save(*args, **kwargs)

    def __unicode__(self):
        return self.email

    class Meta:
        verbose_name = "Validierung"
        verbose_name_plural = "Validierung"


class Subscriber(Model):
    email = models.EmailField(unique=True)
    entities = models.ManyToManyField(Entity, related_name='subscribers')

    def __unicode__(self):
        return self.email

    class Meta:
        verbose_name = "Abonnent"
        verbose_name_plural = "Abonnenten"



class Newsletter(Model):