14 lines
339 B
Python
Raw Normal View History

2013-09-28 18:33:45 +02:00
# -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
2013-09-29 01:21:44 +02:00
2013-09-28 18:33:45 +02:00
class UserProfileForm(forms.ModelForm):
2013-10-03 17:21:18 +02:00
class Meta(object):
2013-09-28 18:33:45 +02:00
model = User
fields = ['first_name', 'last_name', 'email']
widgets = {
'email': forms.widgets.TextInput(attrs=dict(autofocus=None)),
}