bia-fitness/profiles/views.py

11 lines
262 B
Python
Raw Normal View History

2015-04-09 20:58:04 +00:00
from django.shortcuts import render
from django import forms
from django.contrib.auth.decorators import login_required
@login_required
def edit_profile(request):
form = request.user.profile
return render(request, 'profiles/edit.html', {'form': form})