Move AutoAdminSingleton from the common app to the user_management app

This commit is contained in:
Roberto Rosario
2012-09-27 01:44:02 -04:00
parent a237217f8b
commit d75e8b345f
6 changed files with 127 additions and 3 deletions
+15 -2
View File
@@ -1,3 +1,16 @@
from django.db import models
from __future__ import absolute_import
# Create your models here.
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from common.models import Singleton
class AutoAdminSingleton(Singleton):
account = models.ForeignKey(User, null=True, blank=True, related_name='auto_admin_account', verbose_name=_(u'account'))
password = models.CharField(null=True, blank=True, verbose_name=_(u'password'), max_length=128)
password_hash = models.CharField(null=True, blank=True, verbose_name=_(u'password hash'), max_length=128)
class Meta:
verbose_name = verbose_name_plural = _(u'auto admin properties')