1 from django
.db
import models
2 from django
.conf
import settings
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')
10 def get_resource_url_list():
11 return u
"%suser/" % settings
.ROA_BASE_URL
13 db_table
= 'utilisateurs'