diff gpp/legacy/management/commands/import_old_users.py @ 294:254db4cb6a86

Changes / scripts to import forums. Other tweaks and moving other import scripts to the legacy application.
author Brian Neal <bgneal@gmail.com>
date Wed, 05 Jan 2011 04:09:35 +0000
parents a6357f2bcbbc
children
line wrap: on
line diff
--- a/gpp/legacy/management/commands/import_old_users.py	Wed Dec 29 04:56:53 2010 +0000
+++ b/gpp/legacy/management/commands/import_old_users.py	Wed Jan 05 04:09:35 2011 +0000
@@ -140,9 +140,9 @@
         u.save()
 
         p = u.get_profile()
-        p.location = row['user_from']
-        p.occupation = row['user_occ']
-        p.interests = row['user_interests']
+        p.location = row['user_from'].decode('latin-1')
+        p.occupation = row['user_occ'].decode('latin-1')
+        p.interests = row['user_interests'].decode('latin-1')
         p.profile_text = u''
         p.hide_email = True if row['user_viewemail'] != '1' else False
         p.signature = self.to_markdown(row['user_sig']) if row['user_sig'] else u''