Ignore:
Timestamp:
Mar 29, 2011 3:12:57 PM (4 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test, video
Children:
45dc70c
Parents:
16c505f
git-author:
yomguy <yomguy@…> (29/03/2011 15:12:57)
git-committer:
yomguy <yomguy@…> (29/03/2011 15:12:57)
Message:

add user profile model and view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/system.py

    ra0a6e24 raaac98d  
    3636from django.contrib.auth.models import User 
    3737from telemeta.models.core import * 
    38 import django.db.models 
    3938from django.core.exceptions import ObjectDoesNotExist 
    4039from django.utils.translation import ugettext_lazy as _ 
     40import django.db.models 
    4141 
    4242 
     
    7575    "User profile extension" 
    7676     
    77     user            = django.db.models.ForeignKey(User, unique=True) 
     77    user            = ForeignKey(User, unique=True) 
    7878    institution     = CharField(_('institution')) 
    7979    function        = CharField(_('function')) 
     
    8282    expiration_date = DateField(_('expiration_date')) 
    8383     
     84    class Meta(MetaCore): 
     85        db_table = 'profiles' 
     86         
Note: See TracChangeset for help on using the changeset viewer.