From: yomguy Date: Mon, 9 Jul 2012 15:22:42 +0000 (+0200) Subject: fix no profile X-Git-Tag: 0.7-dev~25 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6420ce95775f1b79ae64d02223562c86cf3915ce;p=teleforma.git fix no profile --- diff --git a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py index 17f5cbbb..658e26c4 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py @@ -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: diff --git a/teleforma/static/teleforma/css/teleforma.css b/teleforma/static/teleforma/css/teleforma.css index 80900c89..61d6c3f1 100644 --- a/teleforma/static/teleforma/css/teleforma.css +++ b/teleforma/static/teleforma/css/teleforma.css @@ -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;