2013-09-28 18:33:45 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from django import forms
|
2013-11-24 09:37:47 +01:00
|
|
|
from django.contrib.auth import get_user_model
|
2013-09-28 18:33:45 +02:00
|
|
|
|
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-11-24 09:37:47 +01:00
|
|
|
model = get_user_model()
|
2013-10-31 23:41:44 +01:00
|
|
|
fields = ['first_name', 'last_name', 'email']
|
2013-11-01 21:11:57 +01:00
|
|
|
widgets = {
|
|
|
|
'email': forms.widgets.TextInput(attrs=dict(autofocus=None)),
|
|
|
|
}
|