# Path: nsupdate/accounts/forms.py
# class UserProfileForm(forms.ModelForm):
#     class Meta:
#         model = User
#         fields = ['first_name', 'last_name', ]


from django.views.generic import TemplateView, UpdateView
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from .forms import UserProfileForm
# -*- coding: utf-8 -*-



class UserProfileView(UpdateView):
    template_name = "accounts/user_profile.html"
    model = User
    fields = ['first_name', 'last_name']

# Path: nsupdate/accounts/forms.py
# class UserProfileForm(forms.ModelForm):
#     class Meta:
#         model = User
#         fields = ['first_name', 'last_name', ]


# Path: nsupdate/accounts/views.py
from django.views.generic import TemplateView, UpdateView
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from .forms import UserProfileForm

# -*- coding: utf-8 -*-



class UserProfileView(UpdateView):
    template_name = "accounts/user_profile.html"
    model = User
    fields = ['first_name', 'last_name']

    form_class = UserProfileForm