Reduce auto admin model field names, add password_hash field to detect when the password has been really changed

This commit is contained in:
Roberto Rosario
2012-06-28 11:34:59 -04:00
parent 000271b8d8
commit 2ac89baa8c
2 changed files with 109 additions and 2 deletions

View File

@@ -50,8 +50,9 @@ class AnonymousUserSingleton(Singleton):
class AutoAdminSingleton(Singleton):
auto_admin_account = models.ForeignKey(User, null=True, blank=True, related_name='auto_admin_account', verbose_name=_(u'auto admin'))
auto_admin_password = models.CharField(null=True, blank=True, verbose_name=_(u'auto admin password'), max_length=128)
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')