Profile needs login

This commit is contained in:
Michal Čihař 2012-03-05 16:35:25 +01:00
parent b68521ecf7
commit cecdcb663b

View File

@ -5,10 +5,12 @@ from django.contrib import messages
from django.utils.translation import ugettext as _
from django.http import HttpResponseRedirect
from django.core.mail import mail_admins
from django.contrib.auth.decorators import login_required
from accounts.models import set_lang
from accounts.forms import ProfileForm, UserForm, ContactForm
@login_required
def profile(request):
if request.method == 'POST':