+-i http://pypi.nowoczesnapolska.org.pl/simple
+
Django>=1.5,<1.6
South
lxml>=2.2
django-gravatar
--e git+https://github.com/gstrat/django-cas-provider.git@330bf3e9e9b5c3bff6d9258b2fb81a08b7f81e31#egg=django-cas-provider
+-e git+https://github.com/rczajka/django-cas-provider.git@bb0f7662eb12a838cbd339dd8b60476a73ec161b#egg=django-cas-provider
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-03-20 16:32+0100\n"
-"PO-Revision-Date: 2013-03-20 16:35+0100\n"
+"POT-Creation-Date: 2013-04-15 11:11+0200\n"
+"PO-Revision-Date: 2013-04-15 11:11+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
msgid "Passwords do not match!"
msgstr "Hasło i powtórzenie się nie zgadzają!"
+#: views.py:28
+msgid "Profile has been changed."
+msgstr "Profil został zmieniony."
+
+#: views.py:42
+msgid "Password has been changed."
+msgstr "Hasło zostało zmienione."
+
#: templates/account/profile.html:8
msgid "Change at Gravatar.com"
msgstr "Zmień na Gravatar.com"
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.shortcuts import render
-from django.utils.translation import ugettext as __
+from django.utils.translation import ugettext as _
from django.views.decorators.http import require_POST
from accounts.forms import UserBasicForm, UserPasswordForm
from .models import Service
if form.is_valid():
form.save()
- messages.add_message(request, messages.INFO, __("Profile has been changed."))
+ messages.add_message(request, messages.INFO, _("Profile has been changed."))
return http.HttpResponseRedirect('/accounts/')
return account_profile(request, basic_form=form)
request.user.set_password(form.cleaned_data['new_password'])
request.user.save()
- messages.add_message(request, messages.INFO, __("Password has been changed."))
+ messages.add_message(request, messages.INFO, _("Password has been changed."))
return http.HttpResponseRedirect('/accounts/')
return account_profile(request, pass_form=form)
{% csrf_token %}
<h1>{% trans "Login" %}</h1>
- {% for error in errors %}
- <p>{{ error }}</p>
- {% endfor %}
+ {% if errors %}
+ <ul class="errorlist">
+ {% for error in errors %}
+ <li>{{ error }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Log me in' %}" tabindex="10" />