bia-fitness/profiles/views.py
2015-04-09 16:58:04 -04:00

11 lines
262 B
Python

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})