From d6d9a08e63f2e8bfcd997eab396c65dc3b7a2918 Mon Sep 17 00:00:00 2001 From: Angel Velasquez Date: Fri, 17 Sep 2010 17:35:24 -0300 Subject: 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 Signed-off-by: Dan McGee --- main/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main/models.py') 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: -- cgit v1.2.3-54-g00ecf