]> git.parisson.com Git - teleforma.git/commitdiff
fix no profile
authoryomguy <yomguy@parisson.com>
Mon, 9 Jul 2012 15:22:42 +0000 (17:22 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 9 Jul 2012 15:22:42 +0000 (17:22 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py
teleforma/static/teleforma/css/teleforma.css

index 17f5cbbb047d2fa6767343ba2e938e8749d713b6..658e26c4791b0460ec69361f7eb0eb28568219a0 100644 (file)
@@ -36,7 +36,7 @@ class Command(BaseCommand):
         translation.activate(self.language_code)
         users = User.objects.filter(is_staff=True)
         for user in users:
-            profile = Profile.objects.get(user=user)
+            profile, c = Profile.objects.get_or_create(user=user)
             if profile:
                 profile.init_password = False
                 if not profile.init_password and user.is_active:
index 80900c896d325ded32f60c978e6f3487f3c5eb73..61d6c3f1e69177ba86d3b927ce2c1cad456f7a14 100644 (file)
@@ -266,6 +266,11 @@ input[type=button], input[type=submit], input[type=reset] {
     padding: .1em .5em;
     font-weight: bold;
     cursor: pointer;
+    -moz-border-radius: 8px 0px 8px 8px;
+     -webkit-border-radius: 8px 0px 8px 8px;
+     border-radius: 8px 0px 8px 8px;
+    }
+
 }
 input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
     background: #8D8C94;