Mercurial > public > sg101
comparison legacy/management/commands/import_old_users.py @ 789:9e803323a0d0
Removing AUTH_PROFILE_MODULE and get_profile().
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 May 2014 15:10:11 -0500 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
788:84aa49497718 | 789:9e803323a0d0 |
---|---|
137 if is_anonymous: | 137 if is_anonymous: |
138 u.set_unusable_password() | 138 u.set_unusable_password() |
139 | 139 |
140 u.save() | 140 u.save() |
141 | 141 |
142 p = u.get_profile() | 142 p = u.profile |
143 p.location = row['user_from'].decode('latin-1') | 143 p.location = row['user_from'].decode('latin-1') |
144 p.occupation = row['user_occ'].decode('latin-1') | 144 p.occupation = row['user_occ'].decode('latin-1') |
145 p.interests = row['user_interests'].decode('latin-1') | 145 p.interests = row['user_interests'].decode('latin-1') |
146 p.profile_text = u'' | 146 p.profile_text = u'' |
147 p.hide_email = True if row['user_viewemail'] != '1' else False | 147 p.hide_email = True if row['user_viewemail'] != '1' else False |