13 lines
282 B
Python
13 lines
282 B
Python
from django import forms
|
|
|
|
from medwings.models import Profile
|
|
|
|
|
|
class ProfileForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Profile
|
|
fields = ['date_of_birth', 'sex']
|
|
widgets = {
|
|
'date_of_birth': forms.DateInput(attrs={'type': 'date'}),
|
|
}
|