Mercurial > public > sg101
comparison gpp/bio/models.py @ 31:5eed5e7c1c98
Remove fields in the user profile that were superceded by the django-elsewhere application: website, icq, aim, etc.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 May 2009 20:27:57 +0000 |
parents | dbd703f7d63a |
children | e249b5f9d180 |
comparison
equal
deleted
inserted
replaced
30:a39907cd63e2 | 31:5eed5e7c1c98 |
---|---|
25 location = models.CharField(max_length=128, blank=True) | 25 location = models.CharField(max_length=128, blank=True) |
26 birthday = models.DateField(blank=True, null=True, | 26 birthday = models.DateField(blank=True, null=True, |
27 help_text='Optional; the year is not shown to others') | 27 help_text='Optional; the year is not shown to others') |
28 occupation = models.CharField(max_length=128, blank=True) | 28 occupation = models.CharField(max_length=128, blank=True) |
29 interests = models.CharField(max_length=255, blank=True) | 29 interests = models.CharField(max_length=255, blank=True) |
30 website_1 = models.URLField(verify_exists=False, blank=True) | |
31 website_2 = models.URLField(verify_exists=False, blank=True) | |
32 website_3 = models.URLField(verify_exists=False, blank=True) | |
33 profile_text = models.TextField(blank=True) | 30 profile_text = models.TextField(blank=True) |
34 profile_html = models.TextField(blank=True) | 31 profile_html = models.TextField(blank=True) |
35 hide_email = models.BooleanField(default=True) | 32 hide_email = models.BooleanField(default=True) |
36 icq = models.CharField('ICQ', max_length=15, blank=True) | |
37 aim = models.CharField('AIM', max_length=18, blank=True) | |
38 yim = models.CharField('YIM', max_length=25, blank=True) | |
39 msnm = models.CharField('MSN', max_length=25, blank=True) | |
40 twitter = models.CharField(max_length=64, blank=True) | |
41 signature = models.TextField(blank=True) | 33 signature = models.TextField(blank=True) |
42 signature_html = models.TextField(blank=True) | 34 signature_html = models.TextField(blank=True) |
43 avatar = models.ImageField(upload_to=avatar_file_path, blank=True) | 35 avatar = models.ImageField(upload_to=avatar_file_path, blank=True) |
44 | 36 |
45 def __unicode__(self): | 37 def __unicode__(self): |
53 self.profile_html = html.strip() | 45 self.profile_html = html.strip() |
54 html = render_to_string('bio/markdown.html', {'data': self.signature}) | 46 html = render_to_string('bio/markdown.html', {'data': self.signature}) |
55 self.signature_html = html.strip() | 47 self.signature_html = html.strip() |
56 super(UserProfile, self).save(*args, **kwargs) | 48 super(UserProfile, self).save(*args, **kwargs) |
57 | 49 |
58 # vim: ts=4 sw=4 |