[damned-lies] Made use_gravatar field name translatable



commit 5333ef465fd2acec97553bf395293f603f57d6fb
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Dec 29 09:42:14 2015 +0100

    Made use_gravatar field name translatable
    
    Fixes bug #759946. Thanks Jiro Matsuzawa for the report.

 people/migrations/0001_initial.py                  |    3 +++
 .../0002_set_use_gravatar_verbose_name.py          |   20 ++++++++++++++++++++
 people/models.py                                   |    2 +-
 3 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/people/migrations/0001_initial.py b/people/migrations/0001_initial.py
index 0f23df9..50818c9 100644
--- a/people/migrations/0001_initial.py
+++ b/people/migrations/0001_initial.py
@@ -30,5 +30,8 @@ class Migration(migrations.Migration):
                 'db_table': 'person',
             },
             bases=('auth.user',),
+            managers=[
+                ('objects', django.contrib.auth.models.UserManager()),
+            ],
         ),
     ]
diff --git a/people/migrations/0002_set_use_gravatar_verbose_name.py 
b/people/migrations/0002_set_use_gravatar_verbose_name.py
new file mode 100644
index 0000000..bec0f5f
--- /dev/null
+++ b/people/migrations/0002_set_use_gravatar_verbose_name.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.contrib.auth.models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('people', '0001_initial'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='person',
+            name='use_gravatar',
+            field=models.BooleanField(default=False, help_text='Display the image of your gravatar.com 
account', verbose_name='Use gravatar'),
+        ),
+    ]
diff --git a/people/models.py b/people/models.py
index bf1d765..894960d 100644
--- a/people/models.py
+++ b/people/models.py
@@ -45,7 +45,7 @@ class Person(User):
     svn_account = models.SlugField(max_length=20, null=True, blank=True)
     image = models.URLField(_("Image"), null=True, blank=True,
                             help_text=_("URL to an image file (.jpg, .png, ...) of an hackergotchi (max. 
100x100 pixels)"))
-    use_gravatar = models.BooleanField(default=False,
+    use_gravatar = models.BooleanField(_("Use gravatar"), default=False,
         help_text=_("Display the image of your gravatar.com account"))
     webpage_url = models.URLField(_("Web page"), null=True, blank=True)
     irc_nick = models.SlugField(_("IRC nickname"), max_length=20, null=True, blank=True)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]