Première version : mise en route du suivi.
[auf_roa_authentification_backend.git] / auf_roa_authentification_backend / models.py
1 from django.db import models
2 from django.conf import settings
3
4 class AufUser (models.Model):
5 email = models.CharField (primary_key=True, max_length=60, db_column='courriel')
6 password = models.CharField (max_length=35, db_column='motdepasse')
7 first_name = models.CharField (max_length=50, db_column='prenom')
8 last_name = models.CharField (max_length=50, db_column='nom')
9 @staticmethod
10 def get_resource_url_list():
11 return u"%suser/" % settings.ROA_BASE_URL
12 class Meta:
13 db_table = 'utilisateurs'
14 managed = False