summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorAngel Velasquez <angvp@archlinux.org>2010-09-17 17:35:24 -0300
committerDan McGee <dan@archlinux.org>2010-10-05 15:11:50 -0500
commitd6d9a08e63f2e8bfcd997eab396c65dc3b7a2918 (patch)
tree3ac7692af8757ec52d9fd159217b801ef8e3c948 /main
parentd66d0e4300052933a6bfaa016114dc6a68708905 (diff)
downloadarchweb-d6d9a08e63f2e8bfcd997eab396c65dc3b7a2918.tar.gz
archweb-d6d9a08e63f2e8bfcd997eab396c65dc3b7a2918.zip
Adding changing of user profile details
The idea of this patch is allow to the developers who have an account, to change their data without asking some admin to do it for them. Dan: put private email address field back as it is used for a different purpose; add some help text and field names as appropriate. Signed-off-by: Angel Velasquez <angvp@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index 10a77379..dc700fbf 100644
--- a/main/models.py
+++ b/main/models.py
@@ -19,14 +19,15 @@ class UserProfile(models.Model):
help_text="Required field")
other_contact = models.CharField(max_length=100, null=True, blank=True)
website = models.CharField(max_length=200, null=True, blank=True)
- yob = models.IntegerField(null=True, blank=True)
+ yob = models.IntegerField("Year of birth", null=True, blank=True)
location = models.CharField(max_length=50, null=True, blank=True)
languages = models.CharField(max_length=50, null=True, blank=True)
interests = models.CharField(max_length=255, null=True, blank=True)
occupation = models.CharField(max_length=50, null=True, blank=True)
roles = models.CharField(max_length=255, null=True, blank=True)
favorite_distros = models.CharField(max_length=255, null=True, blank=True)
- picture = models.FileField(upload_to='devs', default='devs/silhouette.png')
+ picture = models.FileField(upload_to='devs', default='devs/silhouette.png',
+ help_text="Ideally 125px by 125px")
user = models.OneToOneField(User, related_name='userprofile')
allowed_repos = models.ManyToManyField('Repo', blank=True)
class Meta: