src/p4l/models/user.py
changeset 0 81e7900b06a7
child 39 33a413910b75
equal deleted inserted replaced
-1:000000000000 0:81e7900b06a7
       
     1 # -*- coding: utf-8 -*-
       
     2 '''
       
     3 Created on Aug 04, 2013
       
     4 
       
     5 @author: ymh
       
     6 '''
       
     7 from django.conf import settings
       
     8 from django.contrib.auth.models import AbstractUser
       
     9 from django.db import models
       
    10 from p4l.models.common import P4lModel
       
    11 
       
    12 class User(AbstractUser):
       
    13     language = models.CharField(max_length=2, default=settings.LANGUAGE_CODE[:2])
       
    14     
       
    15     class Meta:
       
    16         app_label = 'p4l'
       
    17