models: declare displayed field in registration form

This commit is contained in:
Benjamin Dauvergne 2014-05-23 15:41:24 +02:00
parent 419702be71
commit 91f5ded3ca
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ class Citoyen(AbstractUser):
USERNAME = 'username'
USER_PROFILE = ( 'title', 'username', 'first_name', 'last_name', 'email',
'phone', 'mobile', 'address', 'postal_code', 'city', 'roles')
REGISTER_FIELDS = ( 'title', 'username', 'first_name', 'last_name', 'email',
'phone', 'mobile', 'address', 'postal_code', 'city')
from authentic2.attribute_aggregator.core import ATTRIBUTE_MAPPING
ATTRIBUTE_MAPPING['l']['profile_field_name'] = 'city'