summaryrefslogtreecommitdiffstats
path: root/mellon/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'mellon/models.py')
-rw-r--r--mellon/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mellon/models.py b/mellon/models.py
index 9368a1d..20aba33 100644
--- a/mellon/models.py
+++ b/mellon/models.py
@@ -1,3 +1,4 @@
+from django.contrib.auth.models import Group
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
@@ -20,3 +21,10 @@ class UserSAMLIdentifier(models.Model):
verbose_name = _('user SAML identifier')
verbose_name_plural = _('users SAML identifiers')
unique_together = (('issuer', 'name_id'),)
+
+
+class AuthenticationLevel(models.Model):
+ group = models.OneToOneField(Group, related_name='auth_level')
+ # ou plutot laisser blanc pour qu'il y ait une erreur si on
+ # a pas recu les niveaux ?
+ value = models.PositiveSmallIntegerField(default=1)