move existing MailDomains to domains table
This commit is contained in:
parent
5db6223bc0
commit
ecaff6a4af
5 changed files with 181 additions and 20 deletions
|
@ -5,21 +5,10 @@ from django.utils.translation import ugettext as _
|
|||
from passlib.hash import sha512_crypt
|
||||
from model_utils.models import TimeStampedModel
|
||||
|
||||
from domains.models import MailDomain
|
||||
from osusers.models import User as OsUser
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class MailDomain(TimeStampedModel, models.Model):
|
||||
domain = models.CharField(max_length=128, unique=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Mail domain')
|
||||
verbose_name_plural = _('Mail domains')
|
||||
|
||||
def __str__(self):
|
||||
return self.domain
|
||||
|
||||
|
||||
class ActivateAbleMixin(models.Model):
|
||||
"""
|
||||
Mixin for model classes that can be active or inactive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue