Commit cecdcb66 authored by Michal Čihař's avatar Michal Čihař

Profile needs login

parent b68521ec
......@@ -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':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment